diff options
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/updates.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/services/updates.ts b/src/services/updates.ts index dc82080..8477733 100644 --- a/src/services/updates.ts +++ b/src/services/updates.ts @@ -146,6 +146,9 @@ export default class Updates extends GObject.Object { if (data.errors.length > 0 && data.repos.length === 0) { this.#updateFromCache().catch(console.error); } else { + // Sort updates by name + for (const repo of data.repos) repo.updates.sort((a, b) => a.name.localeCompare(b.name)); + // Cache and set writeFileAsync(this.#cachePath, JSON.stringify({ cached: true, ...data })).catch(console.error); this.#data = data; |