Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adjust page order to make nested matchPaths work (gatsbyjs#9719)
As per [gatsbyjs#9705](gatsbyjs#9705), this changes the order of the pages in pages-writer.js in order to account for the matchPath specificity and therefore make "nested" matchPaths work. The proposed fix `sortByNumeric` is the most performant solution I could come up with: [Benchmarks](https://runkit.com/juliansthl/5be08b8f2513440012001807) Thanks a lot to @pieh for all the help! (this is my first PR, please let me know if I have to adjust anything)
- Loading branch information