Clean sort code.

This commit is contained in:
Lars Jung 2016-07-01 19:26:17 +02:00
parent 73e74bb887
commit 8485905901
4 changed files with 51 additions and 78 deletions

View file

@ -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 => {