User tests: Successful: Unsuccessful:
Adds the possibility of passing ordering parameters to com_content web service requests in \Joomla\Component\Content\Api\Controller\ArticlesController::displayList()
Make a request to https://<your website>/api/index.php/v1/content/articles.
Add either or both of the following parameters to the request uri:
list[ordering]=field_name (where field_name is the name of a field in the SELECT list of the query)list[direction]=direction (where direction is ASC or DESC).Articles returned by the request will always be in DESCending order by article id.
Depending on the ordering parameters passed, articles returned by the request will be in the desired ASCending or DESCending order by the field specified.
Obviously, as this is a new feature.
| Status | New | ⇒ | Pending | 
| Labels | Added: 
? | ||
 
                 
                @bembelimen Should this be rebased to 4.2-dev?
 
                Please don't. It's such a simple PR, with no impact on anything else, whatsoever.
 
                I mean, include it in 4.1 please.
 
                Apologies for my remarks @richard67. @roland-d just pointed out that 4.1 is RC and does not allow new features. Stupid me.
 
                I have tested this item 
Before the PR the articles came in order of the ID descending. After applying the PR I was able to retrieve articles sorted on the field specified and ordered by the ordering I supplied.
| Status | Pending | ⇒ | Ready to Commit | 
 
                RTC
| Title | 
 | ||||||
| Category | ⇒ | Unit Tests Repository Administration com_admin SQL Postgresql com_associations com_content com_fields com_finder com_languages com_media com_menus com_workflow Language & Strings JavaScript NPM Change Front End | 
| Labels | Added: 
?
?
Language Change
NPM Resource Changed
? Removed: ? | ||
| Category | Unit Tests Repository Administration com_admin SQL Postgresql com_associations com_content com_fields com_finder com_languages com_media com_menus com_workflow Language & Strings JavaScript NPM Change Front End | ⇒ | 
| Labels | Removed: 
?
Language Change
NPM Resource Changed | ||
| Status | Ready to Commit | ⇒ | Fixed in Code Base | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-02-03 21:06:41 | 
| Closed_By | ⇒ | fancyFranci | 
 
                Thank you!
 
                nice one.
@alikon I'm quite sure your dev setup is such, that you can quickly test this PR :) Would you be so kind?