Skip to content

Commit

Permalink
[fix]: logic in sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Jul 28, 2024
1 parent f03a23f commit dcd7683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class AppPreferences @Inject constructor(
)
val crashesSortReversedOrder get() = flowSharedPreferences.getBoolean(
key = "pref_crashes_sort_reversed_order",
defaultValue = false,
defaultValue = true,
)

fun updateCrashesSortSettings(sortType: CrashesSort, sortInReversedOrder: Boolean) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ enum class CrashesSort(
NEW(
titleRes = Strings.sort_by_new,
sorter = { crashes ->
crashes.sortedByDescending { it.lastCrash.dateAndTime }
crashes.sortedBy { it.lastCrash.dateAndTime }
},
),
COUNT(
titleRes = Strings.sort_by_count,
sorter = { crashes ->
crashes.sortedByDescending { it.count }
crashes.sortedBy { it.count }
},
),
}

0 comments on commit dcd7683

Please sign in to comment.