mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
Fix subsort error
This commit is contained in:
parent
36b6d9e17a
commit
1c15a56c68
1 changed files with 2 additions and 2 deletions
|
@ -298,7 +298,7 @@
|
|||
if (a === b) {
|
||||
if (_.isNumber(aSub) && _.isNumber(bSub)) {
|
||||
return aSub === bSub ? 0 : aSub > bSub ? order : -order;
|
||||
} else if (aSub !== undefined && bSub !== undefined) {
|
||||
} else if (aSub && bSub) {
|
||||
aSub = aSub.toLowerCase();
|
||||
bSub = bSub.toLowerCase();
|
||||
|
||||
|
@ -317,7 +317,7 @@
|
|||
if (a === b) {
|
||||
if (_.isNumber(aSub) && _.isNumber(bSub)) {
|
||||
return aSub === bSub ? 0 : aSub > bSub ? order : -order;
|
||||
} else if (aSub !== undefined && bSub !== undefined) {
|
||||
} else if (aSub && bSub) {
|
||||
aSub = aSub.toLowerCase();
|
||||
bSub = bSub.toLowerCase();
|
||||
|
||||
|
|
Loading…
Reference in a new issue