#85485JsonView forces order by UID
Description
When I want to get ordered records from a repository and provide it through the JsonView, the result is reordered by UID.
How to reproduce:
- Install
static_info_tablesandstatic_info_tables_de - Use a controller with overwritten view to JsonView
- Use the configuration
'zones' => [
'_descendAll' => [
'_only' => ['localName', 'uid']
]
]
- Use the countryZoneRepository and the method
findByCountryOrderedByLocalizedName() - You’ll get all zones of one country ordered by the localized name
- Assign it to the view
- Call this action via e.g. page type
- You’ll get the zones ordered by UID
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 4
-
Susanne Moog changed category 03/26/20, 08:46
-
Markus Klein commented 06/05/23, 13:17
-
Riccardo De Contardi commented and changed status
NewNeeds Feedback 09/09/23, 08:14Hi, may I ask if this issue is still relevant on recent TYPO3 versions like 11 or 12?
-
Christian Kuhn commented and changed status
Needs FeedbackClosed 12/18/23, 12:20Hey. I hope it’s ok to close here for now.
I fail to reproduce this. Any array passed to JsonView returned in identical sorting.