mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Sort recent emails descending
This commit is contained in:
parent
8c722f9e57
commit
a2f88a6288
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ export default function RecentEmails(): JSX.Element {
|
|||
applyStoredTheme(false)
|
||||
|
||||
const sortedRecentEmails = useMemo(() => {
|
||||
return recentEmails.sort((a, b) => a.createdAt.localeCompare(b.createdAt))
|
||||
return recentEmails.sort((a, b) => b.createdAt.localeCompare(a.createdAt))
|
||||
}, [recentEmails])
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue