People rarely use them in real life, but ISO 8601 and RFC 3339 (both are almost identical) are the most natural ways of writing date and time. Just like how we write numbers, their components are written from left to right in the decreasing order of significance: yyyy-mm-ddTHH:MM:SS. I like it by default for precisely the reason you mentioned - sorting. It even helps quick visual comparisons.
09.08.2023 (dd/mm/yyyy) anybody?
I like it for reading and using the date day to day
But yyy-mm-dd is best for sorting and archiving files
This
People rarely use them in real life, but ISO 8601 and RFC 3339 (both are almost identical) are the most natural ways of writing date and time. Just like how we write numbers, their components are written from left to right in the decreasing order of significance: yyyy-mm-ddTHH:MM:SS. I like it by default for precisely the reason you mentioned - sorting. It even helps quick visual comparisons.
Why would you put the day first?