mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Correct title ordering for objects without titles (#3244)
* Correct scene title ordering * Correct ordering for other objects * Add basename function, add to gallery title sort
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package sqlite
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
@@ -30,3 +31,7 @@ func durationToTinyIntFn(str string) (int64, error) {
|
||||
|
||||
return int64(seconds), nil
|
||||
}
|
||||
|
||||
func basenameFn(str string) (string, error) {
|
||||
return filepath.Base(str), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user