it’s so confusing that the order changes when adding IDENTICAL strings to BOTH filenames. Is this really how it’s supposed to be?

  • dysprosium@lemmy.dbzer0.comOP
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    6 days ago

    yes yes I get what you’re saying but it’s still odd. Didn’t humans do this differently in the old analog days? I’m sure any human when working with a real paper archive in front of him, order 5 A before 5.5 A. Perhaps it has something to do with viewing 5 as 5.0 and 5.00, since they are mathematically equivalent, and come before 5.5. Although humans would also be inconsistent because they would order 5.9 before 5.11 if the context were to be chapters going from 5.9 -> 5.10 -> 5.11. But if these papers were to represent values, humans would order 5.9 AFTER 5.11. And computers obviously don’t make exceptions based on context like humans do.

    edit: if I understand correctly, I’d be cleaner if spaces come first in character ranking of ANY character. Perhaps that’d make it more human readable.

    • Dave@lemmy.nz
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      6 days ago

      If a person was ordering them, they would do it in numerical order. Despite these being numbers, the computer is still ordering in alphabetical order.

      Doing it the way a person would requires the file manager to understand context, which requires a lot more logic for arguably little benefit.

      I note that your season and episode start with 0 as well (S01E05), in order to ensure the alphabetical ordering works. Perhaps you should use 5.0 to solve this in the same way.

      • Deckweiss@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        6 days ago

        Doing it the way a person would requires the file manager to understand context, which requires a lot more logic for arguably little benefit.

        I’m so glad KDE Dolphin has a “natutal sorting” option. Not sure about this specific case, but I have never been surprised by the order with that setting.

        Would be interesting to check the code behind it.