Skip to content

Fix backlink sort order - #2

Open
PluieElectrique wants to merge 1 commit into
bibanon:masterfrom
PluieElectrique:fix-backlink-sort
Open

Fix backlink sort order#2
PluieElectrique wants to merge 1 commit into
bibanon:masterfrom
PluieElectrique:fix-backlink-sort

Conversation

@PluieElectrique

Copy link
Copy Markdown

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