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
I frequently have orderable objects which should have a default sort order, but option for manually overriding. So the object will have something like:
privatestatic$default_sort = 'Sort ASC, Title ASC`;
With the GridFieldOrderableRows component added, only the sort column managed by the component itself is considered in the CMS display of the items. If no values have been set in the sort field they display unsorted in whichever order SQL decides to show them. (Mostly just ordered by id).
The component offers a getter and setter for $extraSortFields but these are applied as higher priority sorts than the managed sort column. What I'm looking for is setting sorts with a lower priority than the managed sort column, preferably making use of the defaults set elsewhere.
I frequently have orderable objects which should have a default sort order, but option for manually overriding. So the object will have something like:
With the
GridFieldOrderableRows
component added, only the sort column managed by the component itself is considered in the CMS display of the items. If no values have been set in the sort field they display unsorted in whichever order SQL decides to show them. (Mostly just ordered by id).The component offers a getter and setter for
$extraSortFields
but these are applied as higher priority sorts than the managed sort column. What I'm looking for is setting sorts with a lower priority than the managed sort column, preferably making use of the defaults set elsewhere.PRs
The text was updated successfully, but these errors were encountered: