Use stringly-typed everything, and always padStart your numbers.
Saves running into issues with numbers outside the 52-bit integer range.
And padding start means you don't have to worry about pesky sort functions.
Just don't do maths. Simple.
Maybe you could do a manual sort.
Provide a "captcha" prompt, and ask which comes first in the list... You know, to make sure the user is a human! And you get free sorting.
Use stringly-typed everything, and always padStart your numbers.
Saves running into issues with numbers outside the 52-bit integer range.
And padding start means you don't have to worry about pesky sort functions.
Just don't do maths. Simple.
Maybe you could do a manual sort.
Provide a "captcha" prompt, and ask which comes first in the list... You know, to make sure the user is a human! And you get free sorting.
Instructions unclear. Now 1+2=12.
I got 000001000002.