mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Move list manipulation outside of compute
This commit is contained in:
parent
b5305888c7
commit
735f1d07eb
1 changed files with 8 additions and 4 deletions
|
|
@ -61,6 +61,13 @@ function byTimeThenNull (appA, appB) {
|
||||||
return appB.lastUpdated.timestamp - appA.lastUpdated.timestamp
|
return appB.lastUpdated.timestamp - appA.lastUpdated.timestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const sortedAppList = appList.sort(byTimeThenNull)
|
||||||
|
|
||||||
|
const mergedList = [
|
||||||
|
...sortedAppList,
|
||||||
|
...gameList
|
||||||
|
]
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Search,
|
Search,
|
||||||
|
|
@ -73,10 +80,7 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
appList() {
|
appList() {
|
||||||
return [
|
return mergedList
|
||||||
...appList.sort(byTimeThenNull),
|
|
||||||
...gameList
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue