diff --git a/www/common/userObject.js b/www/common/userObject.js index 658a0243c..6d3da74c0 100644 --- a/www/common/userObject.js +++ b/www/common/userObject.js @@ -460,7 +460,7 @@ define([ var allFiles = files[FILES_DATA]; var sorted = Object.keys(allFiles).filter(function (a) { return allFiles[a]; }) .sort(function (a,b) { - return allFiles[a].atime < allFiles[b].atime; + return allFiles[b].atime - allFiles[a].atime; }) .map(function (str) { return Number(str); }); return sorted;