Skip to content

Add case-insensitive sorting examples - #120

Merged
gmatossian merged 2 commits into
mainfrom
codex/119-add-case-insensitive-property-sorting-examples
Oct 22, 2026
Merged

gmatossian merged 2 commits into
mainfrom
codex/119-add-case-insensitive-property-sorting-examples

Conversation

@gmatossian

Copy link
Copy Markdown
Owner

The Java sorting references did not show how to provide a comparator for an extracted property, leaving case-insensitive object sorting hard to recover. This adds concise examples and makes the extractor/comparator distinction explicit.

Changes

  • add direct-string and object-property case-insensitive sorting examples;
  • show domain-specific tie-breaking with thenComparing(...); and
  • compare the one- and two-argument Comparator.comparing(...) forms and label the what versus how decisions.

Verification

  • compiled the examples with Temurin Java 21 using javac --release 21;
  • npm run check passed (the existing initial-bundle budget warning remains); and
  • reviewed both rendered topics at the wide layout and at a 430 px viewport.

Review

  • reviewed the complete final diff with no blocking findings or verification gaps;
  • no independent review was used for this small, familiar content change; and
  • AI-assisted contribution: Codex authored the bounded content update, ran verification, and performed the rendered and final-diff reviews.

Closes #119

@gmatossian gmatossian linked an issue Oct 22, 2026 that may be closed by this pull request
@gmatossian
gmatossian merged commit aa85780 into main Oct 22, 2026
1 of 2 checks passed
@gmatossian
gmatossian deleted the codex/119-add-case-insensitive-property-sorting-examples branch October 22, 2026 18:13
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.

Add case-insensitive property-sorting examples

1 participant