Skip to content

Commit

Permalink
fix: command position sorting within the help screen (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Jul 23, 2021
1 parent 15f08bb commit 14e26d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const owlbert = () => {
return ` ${config.cli.blue.bold}
${`a utlity for interacting with ReadMe`.bold}
.
.
.\\\\ /.
’ ‘ ‘ ‘
( nn\\\\ . . / )
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 14e26d4

Please sign in to comment.