is there a way in tailor blueprint to define default sort field and sort order?
1 Like
The default sort and direction? That’s a good question. We have added this to the internal tracker.
1 Like
I’m facing the same problem, have an entry tailor type and I want to sort by something else than the way it was filled in the backend
You should be able to call the sortBy
and sortByDesc
methods on the collection to change the sort order.
not sure, if sorting of results (when it is paginated) will be correct when is performed on collection instead of query… it will be more “tricky”
I wonder if there is some follow-up for this feature to be implemented.
A way to define the default order in the Blueprint definition.
Thanks.