mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 13:34:30 -04:00
Clean sort code.
This commit is contained in:
parent
73e74bb887
commit
8485905901
4 changed files with 51 additions and 78 deletions
|
@ -66,7 +66,7 @@ const cmpItems = (item1, item2) => {
|
|||
val2 = val2.toLowerCase();
|
||||
}
|
||||
|
||||
return settings.natural ? naturalCmp(val1, val2) : regularCmp(val1, val2);
|
||||
return settings.naturalSort ? naturalCmp(val1, val2) : regularCmp(val1, val2);
|
||||
};
|
||||
|
||||
const update = item => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue