sort by href

master
Bel LaPointe 2024-09-19 12:30:01 -04:00
parent 5b67d5c5f0
commit 0e4da7e436
3 changed files with 1 additions and 3 deletions

View File

@ -89,7 +89,7 @@ func Run(ctx context.Context, args []string) error {
series = append(series, v)
}
slices.SortFunc(series, func(a, b Series) int {
return -1 * strings.Compare(path.Base(a.Thumbnail), path.Base(b.Thumbnail))
return -1 * strings.Compare(path.Base(a.HREF), path.Base(b.HREF))
})
if err := tmpl.Execute(w, map[string]any{

View File

@ -1 +0,0 @@
LAdN7KVw-Ig.mp4

View File

@ -1 +0,0 @@
LAdN7KVw-Ig.jpg