mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 21:47:07 +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(
|
return collection.sortedWith(
|
||||||
compareByDescending<Channel> { followCounts[it] }
|
compareByDescending<Channel> { followCounts[it] }
|
||||||
.thenByDescending<Channel> { it.lastNote?.createdAt() ?: 0 }
|
.thenByDescending<Channel> { it.lastNote?.createdAt() ?: 0L }
|
||||||
.thenBy { it.hashCode() },
|
.thenBy { it.hashCode() },
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user