Skip to content

Commit

Permalink
fix: badgeのソートの順番が逆になっていた問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
pantasystem committed Nov 2, 2023
1 parent 5c3efbb commit bfa39da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ sealed interface User : Entity {
CustomEmojiParsedResult(displayName, emptyList())
}

override val iconBadgeRoles: List<BadgeRole> = badgeRoles.filter { it.iconUri != null }.sortedBy {
override val iconBadgeRoles: List<BadgeRole> = badgeRoles.filter { it.iconUri != null }.sortedByDescending {
it.displayOrder
}

Expand Down Expand Up @@ -144,7 +144,7 @@ sealed interface User : Entity {
CustomEmojiParsedResult(displayName, emptyList())
}

override val iconBadgeRoles: List<BadgeRole> = badgeRoles.filter { it.iconUri != null }.sortedBy {
override val iconBadgeRoles: List<BadgeRole> = badgeRoles.filter { it.iconUri != null }.sortedByDescending {
it.displayOrder
}
}
Expand Down

0 comments on commit bfa39da

Please sign in to comment.