github_pr_tree icon indicating copy to clipboard operation
github_pr_tree copied to clipboard

Use Github's sort order

Open jgilchrist opened this issue 3 years ago • 0 comments

The existing sorting method uses a couple of heuristics to sort - however, there are cases where the resulting sorting does not match the order in which Github displays the files.

As a result, scrolling down the list can cause the selected file in the tree to jump around rather than going down one-by-one.

This commit removes most of the sorting logic and instead uses the index of the name of the file on the page, guaranteeing the tree matches Github even if they change their ordering logic.

Fixes #187

jgilchrist avatar Mar 08 '22 12:03 jgilchrist