As you may know, JS sorts numbers in string order. It is mentioned in the documentation: https://developer.mozilla.org/en-US/docs ...