Hacker News new | ask | show | jobs
by keep_reading 902 days ago
UUIDv7 is sortable by time
1 comments

And I’m sure that will be incredibly useful in 20 years when UUIDv7 has entirely supplanted UUIDv4 in all legacy systems (and you only need to sort by date created), but for now let’s just go with the best practice for the foreseeable future and sort in a way that not only ensures consistency but future-proofs us indefinitely.
Then don't use UUIDs, use snowflakes / flakes