Hi @omareisa ,
If Status is a Choice column, you should need
SortByColumns(
AddColumns(
Filter(
'Approvals test forms',
StartsWith(
Title,
TextSearchBox1.Text
)
),
"SortOrder",
Switch(
Status.Value,
"New",
1,
"Pending",
2,
"Approved",
3,
"Rejected",
4
)
),
"SortOrder"
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps