So I have this table:
And I use this vue2 filter library and I can only sort by a single field using that.
What I wanted to do is to sort the array in descending order using the score and time_consumed field. The higher the score and shorter the time_consumed, the higher the place.
In the example above, the order should look like;
1. 12 | 10141
2. 5 | 15233
3. 5 | 16233
4. 3 | 11495
I used the orderBy filter from the library but I can only sort by score using
v-for="u in orderBy(users, 'score', -1)"
Is there a simpler way to do this? Any help would be much appreciated.
