Hi @Spaderk,
Do you want to sort by some special items in your Gallery?
Could you please tell me that how you configure the relationship between priority and color?
Actually, we could customize the sort order by a customized table. For example, 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.
SortByColumns( Data, "WeekDay", [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ] )
You could add a temporary column to assign different priority for different text color, like red color for High priority and other color for low priority, so we could sort gallery items by:
SortByColumns( Data, "Priority", [ "High Priority", "Low Priority" ] )