Unfortunately the editable table does not currently support client side sorting of the data. (If you do not need editing capabilities, then a paging table could be used instead, which does provide this functionality.)
For the editable table, you can control the initial sort order of the data by using the Element Sorting options on the Field Details tab for the repeat, and providing the appropriate binding.
Any new rows added or modifications made on the screen will not obey this sorting however until the page is refreshed.
If you needed the users to be able to set the column to sort by, you could add onclick events to the labels of the fields within the editable table, and get these to make a server call to refresh the display with the appropriate initial sorting applied.
You could also define a change_function for the editable table to detect any insert or edit operations, and then make the same server call to refresh the sorting after each one.
The problem with this though is that most changes would now be making a server call to refresh the page (to update the sorting), so the user experience will not be as nice.
Let me know if you would like more details on how to configure any of this.
RE: sortable editable table
Unfortunately the editable table does not currently support client side sorting of the data. (If you do not need editing capabilities, then a paging table could be used instead, which does provide this functionality.)
For the editable table, you can control the initial sort order of the data by using the Element Sorting options on the Field Details tab for the repeat, and providing the appropriate binding.
Any new rows added or modifications made on the screen will not obey this sorting however until the page is refreshed.
If you needed the users to be able to set the column to sort by, you could add onclick events to the labels of the fields within the editable table, and get these to make a server call to refresh the display with the appropriate initial sorting applied.
You could also define a change_function for the editable table to detect any insert or edit operations, and then make the same server call to refresh the sorting after each one.
The problem with this though is that most changes would now be making a server call to refresh the page (to update the sorting), so the user experience will not be as nice.
Let me know if you would like more details on how to configure any of this.