• rtxn@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            4 months ago

            Bold of you to assume there isn’t already a genestealer cult on Terra. Washington specifically.

      • Saleh@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        Can be solved with a small shellscript adding a leading zero to all filenames with the format.

      • thesmokingman@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        I’d be curious to see a sorting algorithm that doesn’t handle YYYYY-MM-DD with YYYY-MM-DD properly. If you drop the dashes you still get a proper numeric order. If you sort by component, you still get the proper order. Maybe a string sort wouldn’t? Off the top of my head the languages I’m thinking either put longer strings later, giving us the proper order, or could put 1YYYY- ahead of 1YYY-M so maybe string sorting is the only one that’s out.

        • HailHydra@infosec.pub
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          4 months ago

          Lexical sorting (string sorting/alphabetical order sorting) is what I believe they were referring to when talking about file names.

          The fact that you don’t have to do any parsing of the string at all, just do a straight character-by-character alphabetical sort, and they will be sorted by date, is a great benifit of this date scheme. That means in situations where no special parsing is set up (eg, in a File Explorer windows showing a folders contents sorted alphabetically) or where your string isn’t strictly date only (eg, a file name format such as ‘2025-05-02 - Project 3.pdf’) you can still have everything sorted by date just by sorting alphabetically.

          Its this benifit that is lost when rolling over to 5-digit years.