mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 16:35:39 +00:00
Show newest changes first
This commit is contained in:
@@ -45,7 +45,7 @@ export function Changelog({ lang, changeTitle }: ChangelogProps) {
|
||||
})
|
||||
}, [changelogs, search, tags])
|
||||
|
||||
const [sort, setSort] = useState(false)
|
||||
const [sort, setSort] = useState(true)
|
||||
|
||||
const sortedChangelogs = useMemo(() => {
|
||||
return filteredChangelogs.sort((a, b) => sort ? b.order - a.order : a.order - b.order)
|
||||
|
||||
Reference in New Issue
Block a user