mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
timestamp sorting
This commit is contained in:
committed by
Aiden McClelland
parent
90b412384a
commit
d7508345eb
@@ -74,7 +74,9 @@ export class AppAvailableListPage {
|
||||
async getApps (): Promise<void> {
|
||||
try {
|
||||
this.apps = await this.apiService.getAvailableApps().then(apps =>
|
||||
apps.map(a => ({ id: a.id, subject: initPropertySubject(a) })),
|
||||
apps
|
||||
.sort( (a1, a2) => a2.latestVersionTimestamp.getTime() - a1.latestVersionTimestamp.getTime())
|
||||
.map(a => ({ id: a.id, subject: initPropertySubject(a) })),
|
||||
)
|
||||
this.appModel.getContents().forEach(appInstalled => this.mergeInstalledProps(appInstalled.id))
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user