From 3d1ccfec7011eb5945feb146455eba217abc2c54 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 30 Sep 2015 22:05:18 -0700 Subject: [PATCH] Sort `nvm ls` results by semver version, so the order goes: "unmerged node", "iojs", "merged node". --- nvm.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 90ab4ff..dc8fb5a 100755 --- a/nvm.sh +++ b/nvm.sh @@ -635,7 +635,6 @@ nvm_ls() { s#^\($NVM_IOJS_PREFIX\)[-/]v#\1.v#; s#^\($NVM_NODE_PREFIX\)[-/]v#\1.v#" \ | command sort -t. -u -k 2.2,2n -k 3,3n -k 4,4n \ - | command sort -s -t- -k1.1,1.1 \ | command sed " s/^\($NVM_IOJS_PREFIX\)\./\1-/; s/^$NVM_NODE_PREFIX\.//" \