Hi @Timmo1016,
If you’re using the legacy table, consider using other controls (like buttons) to trigger sorting actions manually.
When using the legacy table control in Power Apps, you can create custom sorting buttons to allow users to manually trigger sorting actions. Here’s an example of how you might set this up:
Create Custom Buttons:
Add a button control (e.g., a Rectangle or Icon) to your screen.
Set the button’s label or icon to indicate sorting (e.g., an up/down arrow).
You can use the OnSelect property of the button to define the sorting logic.
Sorting Logic:
In the button’s OnSelect property, write code to sort your data source based on a specific column.
For ascending order, you might use something like:
Sort(MyDataSource, ColumnName, Ascending)
For descending order:
Sort(MyDataSource, ColumnName, Descending)
Apply Sorting to the Table:
When the user clicks the button, it triggers the sorting action.
You’ll need to handle the sorting for each column separately by associating the button with the appropriate column.
Visual Feedback:
Consider changing the button’s appearance (color, opacity, etc.) to provide visual feedback when sorting is applied.