forked from cerc-io/cosmos-explorer
sort txs
This commit is contained in:
parent
2f7d2c4ff5
commit
3b2c658340
@ -9,12 +9,10 @@ const props = defineProps({
|
||||
});
|
||||
|
||||
const txs = computed(() => {
|
||||
return (
|
||||
props.value?.map((x) => ({
|
||||
hash: hashTx(fromBase64(x)),
|
||||
tx: decodeTxRaw(fromBase64(x)),
|
||||
})) || []
|
||||
);
|
||||
return props.value?.map((x) => ({
|
||||
hash: hashTx(fromBase64(x)),
|
||||
tx: decodeTxRaw(fromBase64(x)),
|
||||
})) || []
|
||||
});
|
||||
|
||||
const format = useFormatter();
|
||||
|
@ -61,7 +61,7 @@ export const useBaseStore = defineStore('baseStore', {
|
||||
}
|
||||
})
|
||||
);
|
||||
return txs;
|
||||
return txs.sort((a, b) => {return Number(b.height) - Number(a.height)});
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
|
Loading…
Reference in New Issue
Block a user