Permalink
Browse files

db; sort help output

  • Loading branch information...
1 parent b63b1b8 commit 6e657fa6d224c0828c2fbcbf65ee28a03495903d @aheckmann committed Jan 29, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/db.js
View
@@ -52,6 +52,11 @@ function createConstructor (db) {
msgs.push({ method: method, text: msg })
}
})
+ msgs.sort(function (a, b) {
+ return a.method > b.method ? 1 :
+ a.method < b.method ? -1 :
+ 0
+ })
msgs.forEach(function (msg) {
var space = Array(len - msg.method.length +1).join(' ');
log("db." + msg.method + "() " + space + msg.text);

0 comments on commit 6e657fa

Please sign in to comment.