Skip to content

Commit b78652f

Browse files
CopilotDerGoogler
andcommitted
Revert comparator changes - original logic was intentional
Co-authored-by: DerGoogler <[email protected]>
1 parent 97d42d4 commit b78652f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/java/com/dergoogler/mmrl/wx/viewmodel/ModulesViewModel.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ class ModulesViewModel @Inject constructor(
158158
if (descending) {
159159
when (option) {
160160
Option.Name -> compareByDescending { it.name.lowercase() }
161-
Option.UpdatedTime -> compareByDescending { it.lastUpdated }
162-
Option.Size -> compareByDescending { it.size }
161+
Option.UpdatedTime -> compareBy { it.lastUpdated }
162+
Option.Size -> compareBy { it.size }
163163
}
164164
} else {
165165
when (option) {
166166
Option.Name -> compareBy { it.name.lowercase() }
167-
Option.UpdatedTime -> compareBy { it.lastUpdated }
168-
Option.Size -> compareBy { it.size }
167+
Option.UpdatedTime -> compareByDescending { it.lastUpdated }
168+
Option.Size -> compareByDescending { it.size }
169169
}
170170
}
171171

0 commit comments

Comments
 (0)