Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit b92c0a2

Browse files
committedAug 4, 2020
Fix sorting
1 parent bc41cfb commit b92c0a2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎static/js/app.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
var termynal = new Termynal('#termynal');
33

44
function weightNetwork(value) {
5+
if (value == 'NA') {
6+
return -1001
7+
}
8+
59
if (value == 'Very Low') {
610
return -1000
711
}
@@ -18,20 +22,20 @@ function weightNetwork(value) {
1822
return -996
1923
}
2024

21-
if (value == 'Hight') {
25+
if (value == 'High') {
2226
return -995
2327
}
2428

2529
if (value.startsWith('Up to')) {
2630
const m = value.match(/\d+/)
2731
if (m) {
28-
return m[0] - 0.5
32+
return parseInt(m[0]) - 0.5
2933
}
3034
}
3135

3236
const m = value.match(/\d+/)
3337
if (m) {
34-
return m[0]
38+
return parseInt(m[0])
3539
}
3640

3741
return -9000

0 commit comments

Comments
 (0)