Skip to content

fix(compare): compare strings, symbols, and keywords ordinally - #27

Merged
skydread1 merged 1 commit into
maint-1.11.xfrom
fix/ordinal-compare
Aug 20, 2026
Merged

fix(compare): compare strings, symbols, and keywords ordinally#27
skydread1 merged 1 commit into
maint-1.11.xfrom
fix/ordinal-compare

Conversation

@skydread1

Copy link
Copy Markdown
Member

Closes #23

  • Util.compare and Symbol.CompareTo use String.CompareOrdinal
  • Keyword needs no change, it compares through its symbol
  • Tests carry the JVM ground-truth orderings, including a non-ASCII code unit

Util.compare and Symbol.CompareTo used String.CompareTo, which is
culture-sensitive on the CLR, so ordering followed the machine's collation
library and diverged from JVM Clojure. Compare ordinally instead; keywords
compare through their symbol.
@skydread1 skydread1 self-assigned this Aug 20, 2026
@skydread1
skydread1 merged commit 5f58a07 into maint-1.11.x Aug 20, 2026
3 checks passed
@skydread1
skydread1 deleted the fix/ordinal-compare branch August 20, 2026 05:42
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.

compare on strings, symbols, and keywords is culture-sensitive, diverging from JVM Clojure

1 participant