mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 14:36:22 +02:00
Fixes a bug when comparing int and long in the comparator
This commit is contained in:
@@ -194,7 +194,7 @@ class HomeLiveFilter(
|
||||
|
||||
return collection.sortedWith(
|
||||
compareByDescending<Channel> { followCounts[it] }
|
||||
.thenByDescending<Channel> { it.lastNote?.createdAt() ?: 0 }
|
||||
.thenByDescending<Channel> { it.lastNote?.createdAt() ?: 0L }
|
||||
.thenBy { it.hashCode() },
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user