Sort sold Names by highest price first

This commit is contained in:
QuickMythril 2023-04-13 02:44:01 -04:00
parent 833cd05532
commit 0fd4a88575

View File

@ -679,7 +679,7 @@ class NamesMarket extends LitElement {
async updatePageSoldSize() {
this.filteredSoldItems = []
this.marketSoldNames.sort((a, b) => parseFloat(a.amount) - parseFloat(b.amount))
this.marketSoldNames.sort((b, a) => parseFloat(a.amount) - parseFloat(b.amount))
this.filteredSoldItems = this.marketSoldNames
await this.setSoldPages()
await this.updateItemsSoldFromPage(1, true)