sort by href
This commit is contained in:
@@ -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{
|
||||
|
||||
1
cmd/ui/testdata/cam/4.mp4
vendored
1
cmd/ui/testdata/cam/4.mp4
vendored
@@ -1 +0,0 @@
|
||||
LAdN7KVw-Ig.mp4
|
||||
1
cmd/ui/testdata/cam/5.jpg
vendored
1
cmd/ui/testdata/cam/5.jpg
vendored
@@ -1 +0,0 @@
|
||||
LAdN7KVw-Ig.jpg
|
||||
Reference in New Issue
Block a user