Hello, @happyyear what @ivan_apps meant is this:
Sort(
If(
GalleryTab.Selected.Value = "All",
Filter(
Shoe_Inventories,
StartsWith(
Text(ProductCategory),
tbSearch.Text
)
),
Filter(
Shoe_Inventories,
StartsWith(
Text(ProductCategory),
tbSearch.Text
) && Text(ProductCategory) = GalleryTab.Selected.Value
)
),
<COLUMN NAME HERE TO SORT BY, e.g Price, Category etc>
,
If(
AppSortAscending,
SortOrder.Ascending,
SortOrder.Descending
)
)
If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.
Visit my Blog: ahmedsalih.blog
Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos