Issue Bug Closed

#85485JsonView forces order by UID

Thomas Löffler 07/05/18, 11:41 updated 12/18/23, 12:20

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:

  1. Install static_info_tables and static_info_tables_de
  2. Use a controller with overwritten view to JsonView
  3. Use the configuration
        'zones' => [
            '_descendAll' => [
                '_only' => ['localName', 'uid']
            ]
        ]
  1. Use the countryZoneRepository and the method findByCountryOrderedByLocalizedName()
  2. You’ll get all zones of one country ordered by the localized name
  3. Assign it to the view
  4. Call this action via e.g. page type
  5. 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

  1. Susanne Moog changed category 03/26/20, 08:46

  2. Markus Klein commented 06/05/23, 13:17

    I fail to reproduce this. Any array passed to JsonView returned in identical sorting.

  3. Riccardo De Contardi commented and changed status New Needs Feedback 09/09/23, 08:14

    Hi, may I ask if this issue is still relevant on recent TYPO3 versions like 11 or 12?

  4. Christian Kuhn commented and changed status Needs Feedback Closed 12/18/23, 12:20

    Hey. I hope it’s ok to close here for now.