You are viewing a single comment's thread. Return to all comments →
you should do: machines.sort((a,b) => a-b); instead of just machines.sort() for sorting. otherwise js will do string sort for the values of the array.
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Time Required
You are viewing a single comment's thread. Return to all comments →
you should do: machines.sort((a,b) => a-b); instead of just machines.sort() for sorting. otherwise js will do string sort for the values of the array.