How do I change the sort order of the gallery component on a FreedomUI record page?
The current sort order seems to be created on date Newest first. I would like to be able to sort by a custom field on the page alphabetically (A-Z), if the gallery was using text, or numerically, if the field is a number field (smallest to largest).
The feature you're looking to implement is not achievable using a no-code approach but can be done with low-code customization. To create a custom ordering solution, you'll need to modify the page's code and configure the sorting settings as follows: Locate the configuration: 1. Open the page's code and find the section with viewModelConfigDiff. 2. Add the sorting configuration: 3. Include the sorting attribute: In the viewModelConfig block, add this line to include the new config: "ItemsSorting": {}, Identify your Gallery component in the modelConfig block and add the following code "sortingConfig": { "attributeName": "ItemsSorting", "default": [ { "columnName": "Name", "direction": "asc" // Use "desc" for Z-A sorting } ] } 4. Save your changes: Once the code is updated, save the changes. The data should now be displayed in the correct order.