summaryrefslogtreecommitdiff
path: root/src/node/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/db')
-rw-r--r--src/node/db/Pad.js3
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;
};