With the exception of macOS's Finder (see attached screen shot), every file/directory browser I've used sorts files in "ASCIIbetical" order, where "1" < "10" < "2". This could be a plausible enhancement request for the filebrowser, but not something I'd consider a bug. I agree that zero-padding numbers would help with ASCIIbetical sorting.
Jason Weill On Friday, March 24, 2023 at 12:43:39 AM UTC-7 [email protected] wrote: > > Hi Nirmal, > > This is the normal string comparison behavior in Python. The strings are > compared character by character, and if you run out of characters in one > string, it is by default assumed to be smaller than the other string. > That's why, "M - 1" < "M - 10". > Usually to avoid something like this, the best idea would be to name the > folders something like "M - 01", "M - 02", etc. > > On Friday, March 24, 2023 at 8:38:09 AM UTC+1 [email protected] wrote: > >> Hey there.... This is Nirmal here.... This is not such a big deal but I >> want you to clarify whether this is a bug or some intentional thing. I am >> attaching a pic below. Kindly have a look into it and let me know whether >> this issue with alphanumeric sorting of file names is bug or intentionally >> done to accommodate some needs. >> >> >> >> >> >> Thanks and regards.... >> >> >> >> >> >> >> >> >> > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/ebc2a4b8-c714-4e81-bf61-08398ef2e4f0n%40googlegroups.com.
