[Vuejs]-Sorting computed values and updating computed values vue

0πŸ‘

βœ…

I got similar result when omitting the return, it will give you response, but re-sorting won’t work.
Therefore, just use return a.weight - b.weight; instead of a simple a.weight - b.weight;

Detailed explanation : https://stackoverflow.com/a/38159151/3256489

Leave a comment