mirror of https://github.com/stashapp/stash.git
Order saved filters by name (#3101)
This commit is contained in:
parent
04514fbc88
commit
30a7482ddf
|
@ -100,7 +100,7 @@ func (qb *savedFilterQueryBuilder) FindMany(ctx context.Context, ids []int, igno
|
|||
func (qb *savedFilterQueryBuilder) FindByMode(ctx context.Context, mode models.FilterMode) ([]*models.SavedFilter, error) {
|
||||
// exclude empty-named filters - these are the internal default filters
|
||||
|
||||
query := fmt.Sprintf(`SELECT * FROM %s WHERE mode = ? AND name != ?`, savedFilterTable)
|
||||
query := fmt.Sprintf(`SELECT * FROM %s WHERE mode = ? AND name != ? ORDER BY name ASC`, savedFilterTable)
|
||||
|
||||
var ret models.SavedFilters
|
||||
if err := qb.query(ctx, query, []interface{}{mode, savedFilterDefaultName}, &ret); err != nil {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
* Changed Performer height to be numeric, and changed filtering accordingly. ([#3060](https://github.com/stashapp/stash/pull/3060))
|
||||
|
||||
### 🐛 Bug fixes
|
||||
* Fixed Saved Filters not ordered by name. ([#3101](https://github.com/stashapp/stash/pull/3101))
|
||||
* Scene Player no longer always resumes playing when seeking. ([#3020](https://github.com/stashapp/stash/pull/3020))
|
||||
* Fixed space bar sometimes no playing/pausing the scene player. ([#3020](https://github.com/stashapp/stash/pull/3020))
|
||||
* Fixed scrubber thumbnails not disappearing when seeking on mobile. ([#3020](https://github.com/stashapp/stash/pull/3020))
|
||||
|
|
Loading…
Reference in New Issue