vuejs / Discussion

Vue.js discussion
167 stars 17 forks source link

orderBy not working on array of table data #495

Closed nuklehed closed 8 years ago

nuklehed commented 8 years ago

I followed a Laracast to apply some orderBy capabilities to a table. I just want it to sort and reverse sort by clicking on a header. But, it does not seem to be updating my data variables after the initial sort. In the fiddle, click the "Active" header. The first time it will sort, and on subsequent attempts, nothing will happen.

https://jsfiddle.net/nuklehed/vwmerdcu/

Thanks!