diff --git a/src/components/service_node/service_node_unlock.vue b/src/components/service_node/service_node_unlock.vue index 13beccf..930d283 100644 --- a/src/components/service_node/service_node_unlock.vue +++ b/src/components/service_node/service_node_unlock.vue @@ -72,13 +72,20 @@ export default { node.contributors.find( c => c.address === this.our_address && c.amount > 0 ); - return nodes.filter(getOurContribution).map(n => { - const ourContribution = getOurContribution(n); - return { - ...n, - ourContributionAmount: ourContribution.amount - }; - }); + return nodes + .filter(getOurContribution) + .sort((a, b) => { + if (a.service_node_pubkey < b.service_node_pubkey) return -1; + if (a.service_node_pubkey > b.service_node_pubkey) return 1; + return 0; + }) + .map(n => { + const ourContribution = getOurContribution(n); + return { + ...n, + ourContributionAmount: ourContribution.amount + }; + }); }, fetching: state => state.gateway.daemon.service_nodes.fetching }),