gui: Sort versions by date in restore dropdown (#6201)

This commit is contained in:
Robin Schoonover 2019-11-29 00:32:25 -07:00 committed by Jakob Borg
parent 606154b183
commit a5bbc12625

View File

@ -2056,6 +2056,9 @@ angular.module('syncthing.core')
value.modTime = new Date(value.modTime);
value.versionTime = new Date(value.versionTime);
});
values.sort(function (a, b) {
return b.versionTime - a.versionTime;
});
});
if (closed) return;
$scope.restoreVersions.versions = data;