From 2ba6f8b39d044f28d6ee50c652d9cc52d2f4cff6 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 11 Oct 2021 21:13:59 +0800 Subject: [PATCH] sort validators --- src/views/Uptime.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/Uptime.vue b/src/views/Uptime.vue index a2781217..7ba483f6 100644 --- a/src/views/Uptime.vue +++ b/src/views/Uptime.vue @@ -83,6 +83,7 @@ export default { computed: { uptime() { const vals = this.query ? this.validators.filter(x => String(x.description.moniker).indexOf(this.query) > -1) : this.validators + vals.sort((a, b) => b.delegator_shares - a.delegator_shares) return vals.map(x => ({ validator: x.description, address: consensusPubkeyToHexAddress(x.consensus_pubkey),