It is possible to know which savegame is the most recent one, by the way. The last time saving came up (
https://sciprogramming.com/community/index.php?topic=1902.0), I wrote some code:
(procedure (ShowIndices &tmp [slots 20] [names 400])
(GetSaveFiles (gGame name?) @names @slots)
; (SetDebug)
(FormatPrint "%02d %02d %02d %02d %02d\n%02d %02d %02d %02d %02d\n%02d %02d %02d %02d %02d\n%02d %02d %02d %02d %02d"
[slots 0]
[slots 1]
[slots 2]
[slots 3]
[slots 4]
[slots 5]
[slots 6]
[slots 7]
[slots 8]
[slots 9]
[slots 10]
[slots 11]
[slots 12]
[slots 13]
[slots 14]
[slots 15]
[slots 16]
[slots 17]
[slots 18]
[slots 19])
)
The first entry in the slots array tells you the index of the most recent savegame (the one that appears at the top of the restore dialog).