4
Multiple Sort on O2M interface
Source: directus/directus#24371 · opened by @alexvdvalk
Summary The o2m interface currently allows users to specify a default sort order based on a field in the related table. Directus API supports multiple sorts within a single query and this would be helpful in some instances. The proposal is some additional config on the o2m interface that allows users to select more than field to sort on. Currently, a single field is supported ( so this would need to be modified to allow multiple selections, and the o2m component would need to check if the legacy 'sort' field is present. Basic Example <img width="837" alt="Screenshot 2025-01-09 at 14 47 52" src=" /> Simple example where a product has categories, and each category has a type. The desired workflow would sort it by type and then alphabetically by the name, which would make things easier to understand, especially in cases where an item has a large number of related items. Motivation Better visibility of items with lots of related items. …
No pledges yet. Be the first to back this.
Comments
Similar requests
Default value field present in O2M field creation
3 votes · 0 comments
Customizable Display Interface for O2M Relation Selection
5 votes · 0 comments
Related values always includes a link display on o2m
1 vote · 0 comments
Add batch deletion of O2M items
4 votes · 0 comments
Specify sort by field on one to many field
8 votes · 0 comments
No comments yet.