4D for iOS: Sort the Contents of a List Form

Several predefined actions that help your app users manage their content were already available in the Action section: “Add,” “Edit,” “Delete,” and “Share”. 4D v19 R2 introduces a new one, and you’re going to like it! You can now create Sort actions to sort local app data.

Create a sort action

From the Action section in the project editor, just click on the plus button and select Sort action for…, select the table, and finally the field you want to perform your sort on.

This will create a new action in the top panel. As with any other action, you can define an icon, short and long labels, and a table.

The best part is that you can add as many fields as you want to sort your data.

You can then define the sort order, ascending or descending, for each field added in the bottom panel.

Sort app List form content

Let’s see how it works on the end user’s side:


Don’t hesitate to give us feedback on the 4D forum, and check out the dedicated documentation for more details. 

David Azancot
• 4D for iOS Product Owner •David Azancot joined the 4D Product team as a Product Owner in 2017. He's in charge of writing the user stories and translating them into functional specifications. His role also includes making sure that feature implementations meet customers' needs.David graduated with an MBA in Marketing, Internet and Mobility from the Leonard De Vinci Institute and began his career in 2011 with a mobile start-up company, later acquired by Madvertise (a mobile marketing group). Passionate about mobile interfaces, he was the natural choice to develop interactive mobile ad formats for the group in 2015. In parallel, David has been developing his own iOS and Android applications since 2012.