#TIL about UUID7 (mainly because it's now supported in the new #python 3.14). Until today I thought, why bother, uuid4 is fine.
Turns out, UUID7 comes with a free timestamp and the generated ids sort by time.
Read about it here
https://uuid7.com/
And it's available as a library for older python versions, too. https://pypi.org/project/uuid7/
I have a few projects where I use UUID4 for temporary files - I'm going to move these over to UUID7