Skip to content

Commit

Permalink
core(filters): Sort filters alphabetically #50
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaegel committed Sep 22, 2024
1 parent 44b18fe commit 48fe55b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Added

- Possibility to edit the due date without resetting it first #52
- Sort filters alphabetically #50

## [0.10.1] - 2024-09-22

Expand Down
5 changes: 4 additions & 1 deletion lib/data/filter/filter_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ class FilterController extends ModelController<Filter> {
late final List<Map<String, dynamic>> maps;
try {
final Database db = await database;
maps = await db.query('filters');
maps = await db.query(
'filters',
orderBy: 'name',
);
} on Exception {
rethrow;
} finally {
Expand Down

0 comments on commit 48fe55b

Please sign in to comment.