ClearCollect(
ColTabData,
[
{Name: "MyDashboard", Action: "Navigate", Screen: MyDashboard, URL: "", Sort: 1},
{Name: "Manager", Action: "Navigate", Screen: Manager, URL: "", Sort: 2},
{Name: "Assistant", Action: "Navigate", Screen: Assistant, URL: "", Sort: 3},
{Name: "Admin", Action: "Navigate", Screen: Admin, URL: "", Sort: 4}
]
);
// Sort the collection based on the Sort column
ClearCollect(ColTabData, Sort(ColTabData, Sort, SortOrder.Ascending));
In the tab list I using Name value as the Data field shown to the users.
Problem is that my collection sort is ignored and Tab list component is just using alphabetic sort as used
I have tried with numbers like in example, using Sort values as A,B... but nothing help
Only solution is to set Name values like
1. My Dashboard
2. Manager
But this is not a solution as from user perspective, this is ugly.
Also, when I modify a code to use Azure AD groups to define which values will be showed based on group, this numbers will look ridicules.
Did I miss something or Tab list just do not support sorting (or is BUG in this component) ?