Inside Activate
Web Forms and Wizards
How to configure the sort order of a DataSource on a ListPanel
3 min
when setting up a listpanel or dropdownlist that has a dynamic data source, the default sort order is the object name this may not be suitable for your form as you may be want have custom display names or want it sorted in a specific way based off a different value in the below example you will see that the objects are sorted by their name as they appear in the explorer panel in activate studio however, if there are display names on the parameters the sort order doesn't change, it is still base on the object name regardless of the displayname parameter letter c,b,a refer to number 1,2,3 respectively steps to change the sort order you can use the bindingsort parameter as below note this property cannot be set in the activate studio webform interface and will need to be added via text mode \<listpanel id="listpanel1" activatebind="listpanel1" datasource="=//resources/custom/test/resource sorting/subitems" bindingsort="@=/displayname" /> you will need to make sure the reference starts with the @ symbol without this the expression will be evaluated before it is valid and will not work once the bindingsort has been set the objects will now be sorted correctly