mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +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