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.
It’s dd/MM/yyyy you nincompoop
Why would you put the day first?
Because it changes most often.
Why does that mean it should go first?
Because you are able to read the thing that changes most often first. It is more convinient to read from left to right.