akeneo / api-php-client

PHP client of Akeneo PIM API

Home Page:https://packagist.org/packages/akeneo/api-php-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sorting!?

callum-veloxcommerce opened this issue · comments

Why is it possible to do sorting with the PQB in Akeneo but the PHP client cannot do sorting on a search?

There is also absolutely no way to sort results as part of a search via the REST API.

Is there some reasoning behind this or is it a planned feature? This is kind of blocking us at the minute due to a feature required and the only way I can think of around it is to stop using the API or API client directly and do an import of all the 55k+ skus into the web servers MySQL database, which I would like to avoid as using Akeneo as the product API is currently working perfectly apart from this one feature.

I can do sorting on the front end, but then the results will change for every new page that is loaded (not ideal UX), and if I sort each page on the server side after searching then each new page will only be sorted individually. I am looking to sort the actual search results so the first page begins in the right order and subsequent page searches are starting at the right point (ideal UX).

Resolved via Slack:

The usecase of the API is import/export, and in that case sorting results is not useful.