Currently when storing emails the UUID's are totally random, which makes it hard to visually parse them.
Solution
Instead of using Str::uuid()-helper we can utilize the Str::orderedUuid(). This will ensure that the first segment of the UUID is time-based. This change will also eliminate the need for sorting by time, as that's already taken care of by the UUID itself.
About
Currently when storing emails the UUID's are totally random, which makes it hard to visually parse them.
Solution
Instead of using
Str::uuid()
-helper we can utilize theStr::orderedUuid()
. This will ensure that the first segment of the UUID is time-based. This change will also eliminate the need for sorting by time, as that's already taken care of by the UUID itself.