+4
-6
lines changedFilter options
+4
-6
lines changed Original file line number Diff line number Diff line change
@@ -113,14 +113,12 @@
113
113
let isNumber = typeof aAttr === 'number'
114
114
115
115
if (isNumber) {
116
-
return isAsc ? (bAttr - aAttr) : (aAttr - bAttr)
116
+
return isAsc ? (aAttr - bAttr) : (bAttr - aAttr)
117
117
}
118
118
119
-
if (isAsc) {
120
-
return bAttr.localeCompare(aAttr)
121
-
}
122
-
123
-
return aAttr.localeCompare(bAttr)
119
+
return isAsc ?
120
+
aAttr.localeCompare(bAttr) :
121
+
bAttr.localeCompare(aAttr)
124
122
})
125
123
}
126
124
},
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4