See e.g. Historical Jounals.
I use YYYY-MM-DD structures wherever I need chronological order and create them via selected records’ creation dates (which were set to e.g. the publication dates) - but obviously one first needs records to create a structure this way.
With the script it’s possible to create an empty structure and fill it afterwards. It’s also nice to provide custom strings to be able to differentiate groups, especially in search results.