Sort images by date in tag deletion window, since DB IDs are not always increasing

This commit is contained in:
Joseph Schorr 2014-01-09 17:09:54 -05:00
parent d2b9e0d65a
commit b584d74bf0

View file

@ -240,6 +240,11 @@ function RepoCtrl($scope, Restangular, ApiService, $routeParams, $rootScope, $lo
}
images.sort(function(a, b) {
var result = new Date(b.created) - new Date(a.created);
if (result != 0) {
return result;
}
return b.dbid - a.dbid;
});