mirror of https://github.com/vladmandic/automatic
Fix TypeError
`func` is optional for `Array.prototype.sort()`, but `undefined` needs to be used.pull/4687/head
parent
bbdaaae682
commit
ef0573a409
|
|
@ -32,7 +32,7 @@ const gallerySorter = {
|
|||
resD: { name: 'Resolution Descending', func: (b, a) => a.width * a.height - b.width * b.height },
|
||||
modA: { name: 'Modified Ascending', func: (a, b) => a.mtime - b.mtime },
|
||||
modD: { name: 'Modified Descending', func: (b, a) => a.mtime - b.mtime },
|
||||
none: { name: 'None', func: null },
|
||||
none: { name: 'None', func: undefined },
|
||||
};
|
||||
|
||||
let sortMode = gallerySorter.none;
|
||||
|
|
|
|||
Loading…
Reference in New Issue