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
12
index.js
12
index.js
@ -204,12 +204,12 @@ function EntrySort(o, s) {
|
||||
chg = true
|
||||
SortValue = s
|
||||
}
|
||||
if (ts === "desc" || ts === "descending") {
|
||||
ts = -1
|
||||
} else {
|
||||
ts = 1
|
||||
}
|
||||
if (OrderValue !== o) {
|
||||
if (chg || OrderValue !== o) {
|
||||
if (ts === "desc" || ts === "descending") {
|
||||
ts = -1
|
||||
} else {
|
||||
ts = 1
|
||||
}
|
||||
var to = o.toString().toLowerCase()
|
||||
if (to === "start") {
|
||||
if (ts < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user