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.