From 0fd4a885752f015f1b81c28ebbfb62a8618eafc2 Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Thu, 13 Apr 2023 02:44:01 -0400 Subject: [PATCH] Sort sold Names by highest price first --- qortal-ui-plugins/plugins/core/names-market/names-market.src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qortal-ui-plugins/plugins/core/names-market/names-market.src.js b/qortal-ui-plugins/plugins/core/names-market/names-market.src.js index c06534f5..ff5e72b8 100644 --- a/qortal-ui-plugins/plugins/core/names-market/names-market.src.js +++ b/qortal-ui-plugins/plugins/core/names-market/names-market.src.js @@ -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)