Skip to main content
Question

sorting numbers, still weirdly done

  • May 22, 2025
  • 3 replies
  • 12 views

Forum|alt.badge.img

I recently placed numbering in front of my folder's names to sort what I thought would be numerically, however, I get:

1, 10, 11, 12,13, 2, 3, 4, 5, 6, 7, 8, 9

 

This is not numerically.  

3 replies

Forum|alt.badge.img

Thats correct, this sorting is done considering the values are string and not numbers. I know its weird though


Forum|alt.badge.img

Try adding a 0 in front of the single digit numbers, i.e. 01, 02, 03,....09, 10.


Forum|alt.badge.img

My numbering is fine with adding a 0 before the single numbers, but when I create a link to share the file, the link jumbles all the numbers.  How can I fix this?

 

Mary