mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Coding style tweaks for #3134
This commit is contained in:
parent
2b0204422d
commit
fb3b7aa1cd
@ -359,7 +359,7 @@ exports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,is
|
|||||||
if(isNumeric && (!isNaN(x) || !isNaN(y))) {
|
if(isNumeric && (!isNaN(x) || !isNaN(y))) {
|
||||||
return compareNumbers(x,y);
|
return compareNumbers(x,y);
|
||||||
} else if(isAlphaNumeric) {
|
} else if(isAlphaNumeric) {
|
||||||
return isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity:'base'}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: 'base'});
|
return isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity: "base"}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: "base"});
|
||||||
} else if($tw.utils.isDate(a) && $tw.utils.isDate(b)) {
|
} else if($tw.utils.isDate(a) && $tw.utils.isDate(b)) {
|
||||||
return isDescending ? b - a : a - b;
|
return isDescending ? b - a : a - b;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user