macOS Catalina - how to set up Finder to use file sorting logic same as ls command (alphabetical order, not "natural")?
Essentially, Finder is treating the numbers up to the first letter as its sort criterion.

So, as far as Finder is concerned, the order is 'correct' for  


0
2
6
298
2655522


It is not considering the entirety of the name as a hexadecimal figure.

Based on your edit - terminal is 'wrong' - 6 is smaller than 2655522  

It's still down to "if you want a computer to sort 'properly' give it leading zeroes".

I also made a test folder - the logic is perhaps awkward, but it is actually logical, for a given definition.



I think what Terminal is doing is sorting numbers like they were letters, so like e would sort after aabbaccd so 6 sorts after 2655522