major refactoring

This commit is contained in:
ston1th 2022-03-23 21:50:01 +01:00
commit 78b5e5f796
14 changed files with 712 additions and 576 deletions

View file

@ -139,7 +139,9 @@ func getPreloads(path string, fs *fs.FS) (dc dirContents) {
Running: p.Running,
})
}
slices.SortFunc(dc.Files, dc.Files.Less)
slices.SortFunc(dc.Files, func(i, _ file) bool {
return i.Running
})
return
}