I want to allow users to choose which property they would like to sort by then choose whether to order by ascending or descending.
For example, to sort based on the title and by descending order you would make a call to the api like so:
api/blogs?sortBy=title&orderBy=desc
Is this the best way to go about doing this?
I can't find anything useful online and most posts explain that sort by and order by are basically the same thing.
What are peoples opinions on this?