From 14e26d4c00228d58da0c7b416b7817058fa730ab Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Fri, 23 Jul 2021 13:00:22 -0700 Subject: [PATCH] fix: command position sorting within the help screen (#341) --- src/lib/help.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/help.js b/src/lib/help.js index c2e4ed017..6fae0eba6 100644 --- a/src/lib/help.js +++ b/src/lib/help.js @@ -12,7 +12,7 @@ const owlbert = () => { return ` ${config.cli.blue.bold} ${`a utlity for interacting with ReadMe`.bold} - . + . .\\\\ /. ’ ‘ ‘ ‘ ( nn\\\\ . . / ) @@ -102,7 +102,7 @@ exports.globalUsage = async args => { }; category.commands - .sort((a, b) => a.position > b.position) + .sort((a, b) => (a.position > b.position ? 1 : -1)) .forEach(command => { commandCategory.content.push({ command: styleCommand(command),