MatthewLacerda2 / FixFlow

A platform for business to schedule maintenance and visits on-site
Apache License 2.0
0 stars 0 forks source link

Descending GET Filtered is UnSorted #43

Closed MatthewLacerda2 closed 2 months ago

MatthewLacerda2 commented 6 months ago

The GET Filtered endpoints have a .ThenBy() to fallback, but if we choose to sort in descending order we are currently inverting the whole array, instead of sorting by descending then by ascending in the fallback


Example:

A1 A2 B1 B2

Should be

A2 A1 B2 B1

But it's being

B2 B1 A2 A1

MatthewLacerda2 commented 2 months ago

We are not gonna have multiple filters per query anymore. We barely will have many filter options We can stick to "having only one filter option" and deciding the rest of the order in the endpoint's code

This issue is stale. Dismissing