Hey guys,
Same thing here. Founds tons of post about the subject but none if it helped my case and I believe mine is one of the simplest, please forgive me to ask you.
I've got a SharePoint list and one of the column automatically changes its values, either "Ok" or "Low" based on a quick calculation which is simply: If value in column "Stock" is less than value in column "threshold", the value in column "Status" changes to Low and vice versa).
This is just to see what items in my stock is low and which one is not.
What I'm trying to achieve here is simply to have a button that would display the "Low" first and the "Ok" last. A simple sorting.
I'd like to do that by just dividing the number in stock by the threshold, and the lowest value returned would be in top of the results.
I could also just put the "Low" on top but then within the low, there would be no sorting within (like the lowest of the "low" would not be at the top for example.
There is the default button of the app when you build it you know, with the below code:
UpdateContext({SortDescending1: !SortDescending1})
I was thinking of reusing it. Doesnt matter at the end...
Appreciate your help!
Thanks
Anthony