fixed a bug in marks.js, now everything uses imageOrderCmp for sorting...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-02 01:55:12 +04:00
parent 3f65740c71
commit 5cb2ebcfa2

View File

@ -17,7 +17,7 @@
// not exist, as there is no way to distinguish between the two
// situations the cleanup is optional...
function loadMarkedOnlyData(cmp, no_cleanout_marks){
cmp = cmp == null ? imageDateCmp : cmp
cmp = cmp == null ? imageOrderCmp : cmp
var cur = DATA.current
var marked = MARKED.slice().sort(cmp)
// this will ignore any gid in marks that is not in IMAGES...