mirror of
https://github.com/vladmandic/automatic
synced 2026-09-15 02:58:44 +02:00
Fix TypeError
`func` is optional for `Array.prototype.sort()`, but `undefined` needs to be used.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user