mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
gui: Sort versions by date in restore dropdown (#6201)
This commit is contained in:
parent
606154b183
commit
a5bbc12625
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user