pimcore / studio-backend-bundle

Studio Backend bundle
Other
10 stars 1 forks source link

Sorting of assets should be alphabetically #190

Closed vin0401 closed 2 months ago

vin0401 commented 2 months ago

The endpoints for Asset listings seem to deliver the data sorted based on the latest update.

In the classic UI it's sorted alphabetically. I guess, we should implement this again. At the moment, in the studio UI, assets jump to the last place/page after an update was performed.

mattamon commented 2 months ago

@markus-moser, there is a sorter in GDI right?

markus-moser commented 2 months ago

@mattamon Just add this search modifier: https://github.com/pimcore/generic-data-index-bundle/blob/1.x/src/Model/Search/Modifier/Sort/Tree/OrderByFullPath.php

We will need more (generic) sort modifiers in the future but for the default and tree sort this should be fine.

mattamon commented 2 months ago

@markus-moser, @vin0401 https://github.com/pimcore/studio-backend-bundle/pull/192