mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 13:34:30 -04:00
Replace regularCmp with cmp.
This commit is contained in:
parent
4ccab28253
commit
691cbce10f
5 changed files with 6 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
const {each, dom, regularCmp, naturalCmp} = require('../util');
|
||||
const {each, dom, cmp, naturalCmp} = require('../util');
|
||||
const event = require('../core/event');
|
||||
const location = require('../core/location');
|
||||
const resource = require('../core/resource');
|
||||
|
@ -66,7 +66,7 @@ const cmpItems = (item1, item2) => {
|
|||
val2 = val2.toLowerCase();
|
||||
}
|
||||
|
||||
return settings.naturalSort ? naturalCmp(val1, val2) : regularCmp(val1, val2);
|
||||
return settings.naturalSort ? naturalCmp(val1, val2) : cmp(val1, val2);
|
||||
};
|
||||
|
||||
const update = item => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue