This commit is contained in:
vincent 2019-05-09 13:17:21 +02:00
parent d08edaa007
commit d56236f772

View File

@ -71,6 +71,9 @@ const mutations = {
}else{ }else{
state.arrayresultchaines.push({chaine: payload.chaine,name: payload.name,emission: payload.emission}); 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) { setUserData (state, payload) {
console.log('setUserData payload = ', payload) console.log('setUserData payload = ', payload)