You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heres the code that should work according to the documentation: <li v-for="user in orderBy(users, 'name')">
but the sort will not work with this setup. But if we add another argument it will work: <li v-for="user in orderBy(users, 'name', 'name')">
Same for the reverse sorting: <li v-for="user in orderBy(users, 'name', -1)"> - doesnt work <li v-for="user in orderBy(users, 'name', 'name', '-1')"> - works
I`ve checked the code for the orderBy filter. Seems the problem is in the way how the sortorder is retrieved and args array is adjusted after that and how the sortKey is retrieved after that. I can submit a pull request if needed.
The text was updated successfully, but these errors were encountered:
Heres the code that should work according to the documentation:
<li v-for="user in orderBy(users, 'name')">
but the sort will not work with this setup. But if we add another argument it will work:
<li v-for="user in orderBy(users, 'name', 'name')">
Same for the reverse sorting:
<li v-for="user in orderBy(users, 'name', -1)">
- doesnt work<li v-for="user in orderBy(users, 'name', 'name', '-1')">
- worksI`ve checked the code for the orderBy filter. Seems the problem is in the way how the sortorder is retrieved and args array is adjusted after that and how the sortKey is retrieved after that. I can submit a pull request if needed.
The text was updated successfully, but these errors were encountered: