Add the API support of sorting Issue and Merge Request search results
Problem to solve
This issue is to provide parity for Search API where it can sort the Issue and MR search result by certain criteria. The UI side of the issue is #236465 (closed)
Proposal
Add two sorting related parameters
-
order_by, which defines the sorting criterias(TBD)
- Relevance
- Created time
- Updated time
-
sort, which defines whether the results will be returned in asc or desc order.
This could be expanded to other types of search results.
Documentation
We need to update the document to include the sorting parameters in https://docs.gitlab.com/ee/api/search.html