Sort props array on child component Vue.js
I am trying to sort an array of objects that comes from the props on a child component. However, my sort method Throws an error. Maybe I am not using the method properly or I can't properly determine the arguments that needs to be passed to it. What I am trying to do is to sort according to the arguments passed using the click function and calling a method to execute the sort. The intention here is when I click the arrow on the name, I can then sort it by name, according to the arrow (asc or desc). This is my component <script> import moment from 'moment'; export default { name: 'ApplicationsL
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.