diff options
Diffstat (limited to 'src/node/db/Pad.js')
-rw-r--r-- | src/node/db/Pad.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 7a02e0fb..53847600 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -63,6 +63,9 @@ Pad.prototype.getSavedRevisionsList = function getSavedRevisionsList() { for(var rev in this.savedRevisions){ savedRev.push(this.savedRevisions[rev].revNum); } + savedRev.sort(function(a, b) { + return a - b; + }); return savedRev; }; |