Magnus Holmgren wrote:
Hi,

When I looked at the natural sorting code (from FS#8314) the other day, I noticed one small thing that seems a bit odd to me (and I didn't see it mentioned in a quick read-through on the tracker): should it really ignore differences in whitespace the way it does?

As an example, the following files (one file as one space in the name, the other two have three):

   A   b.txt
   A   c.txt
   A b.txt

get sorted like this with natural sorting enabled:

   A   b.txt
   A b.txt
   A   c.txt

I can understand ignoring extra whitespace in front of numbers, but I'm not sure about this... :)

  Magnus

Besides that people who have leading whitespaces in their filenames should burn in hell, yes, that's intended behavior...and I don't see why it should behave differently.

Reply via email to