-
All-in-one prototyping tool
-
WebHi-fi prototypes for Websites & Web Apps
-
MobileCreate lifelike iOS & Android prototypes
-
Collaborative prototyping
-
CollaborationShare and get feedback
-
RequirementsRequirements management
-
IntegrationsSketch, JIRA and more
There is no sort function in the expressions builder yet but you can use the MaxData and MinData functions to simulate a sort but always with fixed values.
Sorting is common. Please add this to the expression builder.
It's true. The development team has been notified and they added it to the product's roadmap.
Victor, could you explain how to use the MaxData and MinData functions to achieve the sort effect?
We have created a datagrid sorting example so you can see how it works. It is not very intuitive but at least it will allow you to simulate many sorting cases. The only problem regarding this example is that you must define the number of rows your datagrid will display since we do not have any function to iterate over data master’s instances. In the attached example, the event will order the instances of a Data Master ‘D’ using its attribute ‘num’. Variables ‘tempList’ and ‘orderedList’ are necessary for the calculations. Notice that the result will display only 3 instances but you can increase this number adding iterations in the defined event.
http://justinmind.s3.amazonaws.com/Or...
This reply was created from a merged topic originally titled
<a class="notranslate" href="https://www.justinmind.com/community/topic/anyone_know_how_to_sort_a_datagrid_by_the_header/changes" rel="nofollow" target="_blank">Anyone know how to sort a datagrid by the header?</a>.
The sort function was included in the latest releases. http://www.justinmind.com/usernote/te...
Comments have been locked on this page!