From 486528416debf12a195944baae764af56111b4d3 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sun, 15 Oct 2023 01:21:59 +0200 Subject: [PATCH] Simplify illustrative example --- preserves-binary.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/preserves-binary.md b/preserves-binary.md index 1b24cfd..f3f86a2 100644 --- a/preserves-binary.md +++ b/preserves-binary.md @@ -81,13 +81,11 @@ serializing in some other implementation-defined order. ordering is required. [^not-sorted-semantically]: It's important to note that the sort - ordering for writing out set elements and dictionary key/value - pairs is *not* the same as the sort ordering implied by the - semantic ordering of those elements or keys. For example, the - `Repr` of a negative number very far from zero will start with - byte that is *greater* than the byte which starts the `Repr` of - zero, making it sort lexicographically later by `Repr`, despite - being semantically *less than* zero. + ordering for writing out set elements and dictionary key/value pairs + is *not* the same as the sort ordering implied by the semantic + ordering of those elements or keys. For example, the `Repr` of a + negative number sorts lexicographically *after* the `Repr` of zero, + despite being semantically *less than* zero. **Rationale**. This is for ease-of-implementation reasons: not all languages can easily represent sorted sets or sorted dictionaries,