Hi @Anonymous,
Could you please share a bit more about your scenario?
Do you want to sort your records based on text field (by predefined order) rather than by alphabetically?
Further, do you use the SortByColumns function within your app?
I suppose that you use the SortByColumns function within your app, is it true?
If you use the SortOrder.Ascending or the SortOrder.Descending as the sort order within your SortByColumns function, your records would be sorted by alphabetically.
You could also take a try to customize your soft order within your SortByColumns function. The SortByColumns function could sort based on a single column table of values, e.g. you can sort record based on the name of a day of the week by supplying [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ] as the sort order. All records which have Monday" will come first, followed by Tuesday, and so on.
The formula format of above scenario as below:
SortByColumns( Table, ColumnName, ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"])
The standard formula format as below:
SortByColumns( Table, ColumnName, SortOrderTable)
On your side, you should type the following formula:
SortByColumns( Table, TextField, ["text1","text2","text3",...])
More details about the SortByColumns function in PowerApps, please check the following article:
SortByColumns function
Best regards,
Kris