Bug report with numeric sort order

Numeric sorting seems to stop working correctly in certain situations. It seems if there is 20 consecutive digits anywhere in the middle of the filename, then the numeric sorting order stops working, even IF those 20 consecutive digits are Identical across ALL files.

19 Consecutive digits or less – Numeric sorting is working correctly.

20 Consecutive digits or more – Numeric sorting has completely stopped working.

https://www.dropbox.com/sh/7yy5sidnf9gercn/AACB8n9NjJQ5BsL9TFCPyhzGa?dl=0 for a link to the files that produced this bug. by doing a mass rename, I experimented with the limits on the number of consecutive digits. (if you put a non-digit somewhere in the middle of the digits, then the next set of digits determines if the number sorting stops working or not.)

The current algorithm is limited to comparing a 64 bit value (2^64, or 18,446,744,073,709,551,616). We might look at improving this in the future.

So in other words, if the 20 consecutive digit number was 18,446,744,073,709,551,615 or less, then it would successfully sort numerically, and 21 digits or greater will always fail to sort numerically. (with 19 always suceeding.)


This is fixed in the 12.21.3 Beta.