add sort
This commit is contained in:
parent
d08edaa007
commit
d56236f772
@ -71,6 +71,9 @@ const mutations = {
|
||||
}else{
|
||||
state.arrayresultchaines.push({chaine: payload.chaine,name: payload.name,emission: payload.emission});
|
||||
}
|
||||
state.arrayresultchaines=state.arrayresultchaines.sort(function (a,b){
|
||||
return ((a.chaine < b.chaine) ? -1 : ((a.chaine > b.chaine) ? 1 : 0));
|
||||
})
|
||||
},
|
||||
setUserData (state, payload) {
|
||||
console.log('setUserData payload = ', payload)
|
||||
|
Loading…
Reference in New Issue
Block a user