Commit 9b1e71e
Eric Bower
·
2023-08-17 15:53:42 -0400 EDT
parent ff7c65b
feat: sort files in tree
1 files changed,
+6,
-0
M
main.go
M
main.go
+6,
-0
| ... | ... | @@ -828,6 +828,12 @@ func (c *Config) writeRevision(repo *git.Repository, pageData *PageData, refs [] | |
| 828 | 828 | ||
| 829 | 829 | wg.Wait() | |
| 830 | 830 | ||
| 831 | + | sort.Slice(treeEntries, func(i, j int) bool { | |
| 832 | + | nameI := treeEntries[i].Path | |
| 833 | + | nameJ := treeEntries[j].Path | |
| 834 | + | return nameI < nameJ | |
| 835 | + | }) | |
| 836 | + | ||
| 831 | 837 | c.Logger.Infof( | |
| 832 | 838 | "compilation complete (%s) branch (%s)", | |
| 833 | 839 | c.RepoName, |