mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +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.modTime = new Date(value.modTime);
|
||||||
value.versionTime = new Date(value.versionTime);
|
value.versionTime = new Date(value.versionTime);
|
||||||
});
|
});
|
||||||
|
values.sort(function (a, b) {
|
||||||
|
return b.versionTime - a.versionTime;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
if (closed) return;
|
if (closed) return;
|
||||||
$scope.restoreVersions.versions = data;
|
$scope.restoreVersions.versions = data;
|
||||||
|
Loading…
Reference in New Issue
Block a user