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

Fix backlink sort order #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PluieElectrique
Copy link

Currently, backlinks are sorted using ksort's SORT_STRING. This results in incorrect sorting if backlinks happen to roll over:

Backlinks 10235 through 19422 should all go after 9774, but SORT_STRING puts numbers starting in 1 ahead of those starting in 9. Using SORT_NATURAL fixes this, while also handling subnums (i.e. backlinks like >>100,3 will sort correctly).

`SORT_STRING` does not work if backlinks roll over, e.g. it will produce
">>100, >>90" instead of ">>90, >>100". `SORT_NATURAL` will handle this
correctly, as well as backlinks with subnums.
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