Generate Sortable UUID v7
UUID v7 embeds a timestamp, so sorting them sorts by creation time.
Input
version: v7 count: 5
Output
0192a1b2-c3d4-7890-abcd-ef0123456789 0192a1b2-c3d5-7000-abcd-ef0123456789 0192a1b2-c3d6-7100-abcd-ef0123456789
How it works
Unlike v4, UUID v7 is lexically sortable. Great for primary keys in databases where you also want chronological ordering.
Try it yourself
Open the full UUID Generator to run this example on your own data.
Open UUID Generator