mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-17 11:16:33 -07:00
fix: Use sortName instead of name for searches/library views (#359)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
c589b9e8fc
commit
a8795cf0c9
5 changed files with 7 additions and 8 deletions
|
|
@ -6,9 +6,8 @@ import 'package:fladder/models/item_base_model.dart';
|
|||
import 'package:fladder/util/localization_helper.dart';
|
||||
|
||||
enum SortingOptions {
|
||||
name([ItemSortBy.name]),
|
||||
sortName([ItemSortBy.sortname]),
|
||||
communityRating([ItemSortBy.communityrating]),
|
||||
// criticsRating([ItemSortBy.criticrating]),
|
||||
parentalRating([ItemSortBy.officialrating]),
|
||||
dateAdded([ItemSortBy.datecreated]),
|
||||
dateLastContentAdded([ItemSortBy.datelastcontentadded]),
|
||||
|
|
@ -23,10 +22,10 @@ enum SortingOptions {
|
|||
const SortingOptions(this.value);
|
||||
final List<ItemSortBy> value;
|
||||
|
||||
List<ItemSortBy> get toSortBy => [...value, ItemSortBy.name];
|
||||
List<ItemSortBy> get toSortBy => [...value, ItemSortBy.sortname];
|
||||
|
||||
String label(BuildContext context) => switch (this) {
|
||||
name => context.localized.name,
|
||||
sortName => context.localized.name,
|
||||
communityRating => context.localized.communityRating,
|
||||
parentalRating => context.localized.parentalRating,
|
||||
dateAdded => context.localized.dateAdded,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue