-
Hi And is it possible to sort the Filter-List "Region" in the city collection? Both should be sorted by name, otherwise it is hard to choose among 200+ regions thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Andre, |
Beta Was this translation helpful? Give feedback.
Hi Andre,
If you mean sorting in the popup dialog you get when selecting a reference, you can set a default sort, so whenever that view is opened it is sorted by the specified property. It is called
initialSort
in the entity collection config.For this use case, since the regions are probably static data, I'd consider simply using a string enumeration.
Or if you need to use a collection, you can enable text search to make it easier to retrieve.
Best,
Francesco