berzniz/github_pr_tree

Sort order in tree structure does not match sort order in GitHub list

Open

#187 opened on Dec 2, 2021

View on GitHub
 (3 comments) (3 reactions) (0 assignees)HTML (81 forks)batch import
help wanted

Repository metrics

Stars
 (677 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

GitHub displays files in a folder before files in a subfolder, the tree view shows the subfolders first. Example:

GitHub

Sources/Webservice/ProductFeedWebservice.swift
Sources/Webservice/Request/ProductFeedRequest.swift

Tree view

Sources/Webservice/Request/ProductFeedRequest.swift
Sources/Webservice/ProductFeedWebservice.swift

It's really confusing to me to be navigating the tree and having the GitHub display jump all around in a different order. If the current tree view sort order is an intentional feature (folders before files), consider an option to match the GitHub listing order?

Contributor guide