-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monotonically increasing guarantee in the same millisecond #1
Comments
@arjunyel |
@yujiosaka yes but that factory doesn't provide guarantees in the same millisecond. If this library fixed that it would be a great reason to use it over the JavaScript library |
@arjunyel |
the monotonic factory increments the least significant bit for the same milliseconds, and is tested here: Lines 201 to 207 in 383bf67
|
What is the current behavior?
perry-mitchell/ulidx#14
If the current behavior is a bug, please provide the steps to reproduce
"given
const [a, b, c] = [ulid(), ulid(), ulid()]
c and b could sort lower than a" ulid/javascript#74What is the expected behavior?
Monotonically increasing guarantee in the same millisecond
What is the motivation / use case for changing the behavior?
Help with sorting
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: