Skip to content

Sort GAP directories numerically instead of lexicographically#37

Merged
magicmark merged 1 commit into
graphql:mainfrom
magicmark:fix/numeric-gap-sort
May 19, 2026
Merged

Sort GAP directories numerically instead of lexicographically#37
magicmark merged 1 commit into
graphql:mainfrom
magicmark:fix/numeric-gap-sort

Conversation

@magicmark
Copy link
Copy Markdown
Contributor

@magicmark magicmark commented May 19, 2026

GAPs are currently sorted on https://gaps.graphql.org/ lexicographically (GAP-10, GAP-13, GAP-33, GAP-7)

We should instead sort alphanumerically (GAP-7, GAP-10, GAP-13, GAP-33)

Considering this a bugfix and merging.

The default .sort() compares strings character-by-character, placing
GAP-10 before GAP-7. Use numeric comparison on the GAP number instead.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@magicmark magicmark marked this pull request as ready for review May 19, 2026 23:55
@magicmark magicmark merged commit 0a75e29 into graphql:main May 19, 2026
2 checks passed
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.

1 participant