Skip to content
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

Update "Ordering" observations #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gibson042
Copy link
Contributor

No description provided.

have the same suffix (or none), then the date and time strings may be
times have the same number of fractional second digits, all time
designators use the same string (e.g., "T"), and all years
are in the same era and use the same number of digits, then they may be
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this do you mean that they are either all using the extended years format or the 4-digit year format?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"In the same era" means the years must all be nonnegative or all be negative—that lexicographic sorting of a collection containing a mixture of years on or after 0000 with years before it is not guaranteed to result in a chronological sort (e.g., "+002021-03-08T13:31:37Z" < "+002021-03-09T02:00:00Z" < "-000043-03-15T11:23:42Z" < "-000322-06-11T03:14:15Z").

"Use the same number of digits" means the years must all be non-expanded (4-digit) or all be expanded with a sign and the same number of additional digits—that lexicographic sorting of a collection containing a mixture of values in which the year is not always expressed using the same number of digits is not guaranteed to result in a chronological sort (e.g., "+000275760-09-13T00:00:00Z" < "+002021-03-08T13:31:37Z" < "2021-03-09T02:00:00Z").

But if all years are in the same era (before 0000 vs. on or after it) and are represented using the same number of digits (four vs. six or possibly more), then lexicographic sorting corresponds with chronological sorting as long as the other constraints also hold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants