Sort images by date in tag deletion window, since DB IDs are not always increasing
This commit is contained in:
parent
d2b9e0d65a
commit
b584d74bf0
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue