My Issues to fix is showing an issue, that is not an issue. What I mean is: It’s saying I can’t do this, but I’m doing it, everything is blue, and it works perfect. It’s working and not blue, so how can I clear this issue, so I can publish?
The datasource is referring to itself - which doesn’t make any sense (although it does seems to work, which is somewhat surprising, but I guess it works only because the data was loaded as the original datasource, so it’s already there on the page)… in any case, it’s not logical, even if it works (referring to the actual original datasource would make more sense even though, as the data is already loaded onto the page, it amounts to the same thing).
Also, how would you do this better?
I like to use an Option Set for dynamic sorting.
That way you don’t need to use any conditions anywhere - just include the field names as attributes on the Option Set (and a yes/no value for descending), have a dropdown for your Sort Options, set the sort to ‘Change Which Field’, and set that value to the Dropdown’s Value. Much cleaner and simpler (plus easier to change in the future if needed).