I dislike the sketch_MMMDDx names. They do not sort chronologically--April comes before January, December before November, and they have no year. If you've left them around for more than a year, they clash with each other.
The code that defines the default sketch name in the Arduino IDE 2.x codebase is here:
I'm a staunch supporter of using the ISO 8601-compliant date format, but I don't see that it is an issue here because nobody should be using the default name for any sketch they care about. The default name only has to be something unique and the current name format is sufficient for that purpose, even if ugly.
In order to make all relevant information available to any who are interested in this subject, I'll add a link to the formal report @DaveX submitted to the issue tracker on GitHub:
Wow just wow.
That seems to be taking a lazy mindset.
Granted it isn't a bug or functional issue but lots of things in s/w including the Arduino IDE are done for esthetics and convenience vs pure functionality.
I think most would agree that the current auto generate name format isn't for esthetics.
The current format also doesn't provide the functionality for sorting
AND despite @ptillisch comment, the current format doesn't even provide guaranteed uniqueness given there is no year.
I bump into these types of file naming/format issues all over the place.
It isn't unique to Arduino s/w. It even affects the names of reports in financial statements in the financial industry. i.e. lots of cases where people's electronic financial statements are not sortable because they used a format that has month names in it.
IMO, it comes from a mindset of the developers/implementers not taking sorting into consideration when they picked a format, then later when the sorting issue is pointed out either not valuing sorting, because they themselves don't ever use the capability, or are too lazy to want to make a change.
sketch_MMMDDx was a silly (IMO dumb) choice from the outset for a variety of reasons.
Something that includes ISO8601 formats like these would have been better.
sketch_YYYY-MM-DD-hh:mm:ss
sketch_YYYY-MM_DD-n
(where n is a numeric instance)
And on save as they could have put the ISO stuff at the front of the name instead of the back to provide sorting capability.
OR they could have just totally copped out completely and simply required the user to enter a name rather than try to automatically generate one.
I actually think not auto generating a name at all and simply requiring user input would have been better than the goofy auto generated name that is currently being used.
Ah. Ok. I stand corrected. Obviously I failed to think that through.
Thank you for pointing that out.
Still, the names could be more friendly to sorting.
Or just don't have the IDE auto generate a name and force the user to specify his own name since as you said:
because nobody should be using the default name for any sketch they care about.