From eadcc22e9ab97419479959d6b9e0fb35b3e92a98 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 25 Mar 2023 19:53:18 -0600 Subject: [PATCH] fix sort order of items on contact given-amounts page --- project.yaml | 1 + src/views/ContactAmountsView.vue | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/project.yaml b/project.yaml index e341de0..b6ed7a2 100644 --- a/project.yaml +++ b/project.yaml @@ -33,6 +33,7 @@ - 01 Change alerts into a component (to cut down duplicate code) - 01 Code for "nav" tabs across the bottom is duplicated on each page. - .2 Add "copied" feedback when they click "copy" on /account + - .5 Fix how icons show on top of bottom bar on ContactAmounts page - commit screen diff --git a/src/views/ContactAmountsView.vue b/src/views/ContactAmountsView.vue index ebbf5e1..5bf58d8 100644 --- a/src/views/ContactAmountsView.vue +++ b/src/views/ContactAmountsView.vue @@ -203,7 +203,8 @@ export default class ContactsView extends Vue { } const sortedResult: Array = R.sort( - (a, b) => new Date(a).getTime() - new Date(b).getTime(), + (a, b) => + new Date(b.issuedAt).getTime() - new Date(a.issuedAt).getTime(), result ); this.giveRecords = sortedResult;