Skip to content

Commit 7e0f2c6

Browse files
committed
Fix definitions ordering
1 parent cc7385a commit 7e0f2c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

english/src/main/kotlin/by/jprof/telegram/bot/english/ExplainerUpdateProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class ExplainerUpdateProcessor(
221221
appendLine()
222222
}
223223

224-
val topDefinitions = it.sortedBy(Definition::thumbsUp).take(3)
224+
val topDefinitions = it.sortedByDescending(Definition::thumbsUp).take(3)
225225

226226
topDefinitions.forEachIndexed { index, definition ->
227227
append(bold(link(definition.word, definition.permalink)).markdownV2)

0 commit comments

Comments
 (0)