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
|
||||
}
|
||||
|
||||
const sortedAppList = appList.sort(byTimeThenNull)
|
||||
|
||||
const mergedList = [
|
||||
...sortedAppList,
|
||||
...gameList
|
||||
]
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Search,
|
||||
|
|
@ -73,10 +80,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
appList() {
|
||||
return [
|
||||
...appList.sort(byTimeThenNull),
|
||||
...gameList
|
||||
]
|
||||
return mergedList
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue