You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I insert one cell to store the numeric value of the float type in summary section as following shown. cells.insert(11, '<th class="sortable" data-column-type="speedup">speedup</th>')
And the speedup is the numeric value of the float type.
In genericSort fuction, convert the value of cell into lowcase, I think should check whether the value is a numeric type.
If yes, should return parseFloat(a[key]) - parseFloat(b[key])
I insert one cell to store the numeric value of the float type in summary section as following shown.
cells.insert(11, '<th class="sortable" data-column-type="speedup">speedup</th>')
And the speedup is the numeric value of the float type.
In genericSort fuction, convert the value of cell into lowcase, I think should check whether the value is a numeric type.
If yes, should return parseFloat(a[key]) - parseFloat(b[key])
sorted = list.sort((a, b) => { if (!isNaN(parseFloat(a[key])) && !isNaN(parseFloat(a[key]))){ return parseFloat(a[key]) - parseFloat(b[key]) } return a[key] === b[key] ? 0 : a[key] > b[key] ? 1 : -1 })
The text was updated successfully, but these errors were encountered: