From cdf576ffc5be4300fd9ef225423b9f046f435c0e Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Sat, 9 Jul 2022 08:15:47 +0000 Subject: [PATCH] Results of ::ge command now sorted by item name --- .../rs09/game/system/command/sets/MiscCommandSet.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt b/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt index ff1957f32..7b638186a 100644 --- a/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt +++ b/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt @@ -672,7 +672,7 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){ offerPrice[offer.itemID] = offer.offeredValue } - val entries = offerAmounts.entries + val entries = offerAmounts.entries.sortedBy({ e -> getItemName(e.key) }) var lineId = 11 setScrollTitle(player, "Bot Stock - \"$searchTerm\"") for(i in 0..299) { @@ -698,7 +698,7 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){ offerPrice[offer.itemID] = offer.offeredValue } - val entries = offerAmounts.entries + val entries = offerAmounts.entries.sortedBy({ e -> getItemName(e.key) }) var lineId = 11 setScrollTitle(player, "Bot Stock") for(i in 0..299) { @@ -730,7 +730,7 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){ lowestPrice[offer.itemID] = price } - val entries = offerAmounts.entries + val entries = offerAmounts.entries.sortedBy({ e -> getItemName(e.key) }) var lineId = 11 setScrollTitle(player, "Active Sell Offers") for(i in 0..299) { @@ -762,7 +762,7 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){ highestPrice[offer.itemID] = price } - val entries = offerAmounts.entries + val entries = offerAmounts.entries.sortedBy({ e -> getItemName(e.key) }) var lineId = 11 setScrollTitle(player, "Active Buy Offers") for(i in 0..299) {