Fix game versions not being in right order

This commit is contained in:
2025-12-20 14:29:19 -07:00
parent ad6efdbbbe
commit cb10fbd991
2 changed files with 7 additions and 0 deletions

View File

@@ -58,6 +58,12 @@ export default function Installs () {
>
{downloadedVersionsConfig && downloadedVersionsConfig.list.length ? (
downloadedVersionsConfig.list
.sort((a, b) => {
const infoA = getVersionInfo(a)
const infoB = getVersionInfo(b)
if (!infoA || !infoB) return -1
return infoB.place - infoA.place
})
.filter(v => {
const info = getVersionInfo(v)
if (!info) return false

View File

@@ -7,4 +7,5 @@ export interface GameVersion {
executable: string
sha512sum: string
size: number
place: number
}