From cc71674def0da2670802f4514fddd3f0a0a3f061 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Tue, 20 Jul 2021 23:20:32 -0700 Subject: [PATCH] fix: command position sorting within the help screen --- 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),