A ULID block like the UUID Block
either that or KSUID
It looks like KSUIDs aren’t sortable if they are created within a second or two of each other, per KSUIDs do not sort properly. · Issue #77 · segmentio/ksuid · GitHub
ULIDs might be a better option but it looks like a much smaller library with less attention on it compared to the one from segment.
Database IDs will likely be changing soon to one of these sorts of solutions (either UUIDs or ideally something that is sortable).
I like the idea of something sortable (both to support as a block and to use for DBs), but still need to land on a good scheme/library.
More research is needed here before settling on something.
UUIDv7 appears to perform the same job as ULID’s so it might be worth using those
UUIDv7 now native, marking as solved