Fix sort not executing if order kept the same.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f79020c95d
commit
a314ffa2b1
2
index.js
2
index.js
@ -204,12 +204,12 @@ function EntrySort(o, s) {
|
|||||||
chg = true
|
chg = true
|
||||||
SortValue = s
|
SortValue = s
|
||||||
}
|
}
|
||||||
|
if (chg || OrderValue !== o) {
|
||||||
if (ts === "desc" || ts === "descending") {
|
if (ts === "desc" || ts === "descending") {
|
||||||
ts = -1
|
ts = -1
|
||||||
} else {
|
} else {
|
||||||
ts = 1
|
ts = 1
|
||||||
}
|
}
|
||||||
if (OrderValue !== o) {
|
|
||||||
var to = o.toString().toLowerCase()
|
var to = o.toString().toLowerCase()
|
||||||
if (to === "start") {
|
if (to === "start") {
|
||||||
if (ts < 0) {
|
if (ts < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user