Skip to content

Commit

Permalink
Improve the collection filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
treoden committed Apr 29, 2024
1 parent 42ce995 commit 76e15a2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ module.exports = async function registerDefaultAttributeCollectionFilters() {
'attributeCollectionSortBy',
{
name: (query) => query.orderBy('attribute.name'),
type: (query) => query.orderBy('attribute.type')
type: (query) => query.orderBy('attribute.type'),
is_required: (query) => query.orderBy('attribute.is_required'),
is_filterable: (query) => query.orderBy('attribute.is_filterable')
}
);

Expand Down

0 comments on commit 76e15a2

Please sign in to comment.