-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort anchors by their associatedPageIndex value
This value is always integer, so we don't have to parse things like Roman numerals (which can exist in anchor text itself), and we can impose meaningful order on arbitrary string anchors (which can be surrounded by numeric anchors). For example, anchor "pg5" can be followed by "pgimage1", then by "pg6". We are intentionally ignoring anchors with negative numbers, as this is a convention for anchors that are not supposed to be in the navigation template.
- Loading branch information
1 parent
c53fcdc
commit 4dc8de6
Showing
3 changed files
with
16 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.