Level 46
There is no orderBy filter in Vue2. Make a computed property using Lodash, Underscore or Ramda.
https://vuejs.org/v2/guide/migration.html#Replacing-the-orderBy-Filter
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I just try to display my data orderBy name something like below
<li v-for="people in peoples | orderBy 'name' ">{{people.name}}</li>
I get an error like
- invalid expression: v-for="people in peoples | orderBy 'name' "
(found in root instance)
How can I solve this problem?
Please or to participate in this conversation.