Skip to content

Commit

Permalink
message board sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaomiDEV committed Aug 5, 2024
1 parent 7be9c47 commit 67a0147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/options/MessageBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import { getMarkdownFor } from '../../lib/markdown';

<IonContent>
<IonList :inset="isIOS">
<IonCard button v-for="boardMessage in boardMessages" :key="JSON.stringify(boardMessage)" @click="showModal(boardMessage)">
<IonCard button v-for="boardMessage in boardMessages.sort((a, b) => b.date.getTime() - a.date.getTime())" :key="JSON.stringify(boardMessage)" @click="showModal(boardMessage)">
<IonCardHeader>
<IonCardSubtitle>{{ dayjs(boardMessage.date).format(`LL, ${twelveHour ? 'hh:mm A' : "HH:mm"}`) }}</IonCardSubtitle>
<IonCardTitle>{{ boardMessage.title }}</IonCardTitle>
Expand Down

0 comments on commit 67a0147

Please sign in to comment.