Describe the bug
On backoffice Catalog page, I click on the blue arrows try to sort the products by ID, name, category name ... and nothing seems to work.
To Reproduce
Go to backoffice Catalog page, click on blue arrows next to "ID" or "Name", or "Category". This should sort the products displayed in the listing. Page is reloaded but not sorted.
Screenshots

Additionnal information
PrestaShop version: 1.7.4.2
PHP version: 7.1
Hi @matks,
I did not manage to reproduce the issue with the last version 1.7.4.2.
I attached a video record: https://drive.google.com/file/d/1AAfdbWluABBV4Q6oqyw9V2m_WJvHNCjh/view
Thanks to check and feedback.
Best regards, Khouloud
Hi @matks,
I manage to reproduce the issue with the branch develop.
In the last version 1.7.4.2. => Ok
We will see how to fix it.
Best regards, Khouloud
According to its routing this page expects URL to be formatted as /{offset}/{limit}/{orderBy}/{sortOrder}
However the listing URL does not follow this at all: /sell/catalog/products?_token=xxxxx&orderBy=reference&sortOrder=asc: the sort parameters are not passed in the path but as GET parameters. So offset, orderBy, sortOrder ... are always being given default values no matter what the user inputs.
@eternoendless Wdyt ? I can either fallback on the $_GET (using Symfony $request object) values or I can modify the routing.
@matks Le Fu.. Was already fixed. https://github.com/PrestaShop/PrestaShop/pull/9074 and validated by @eternoendless
As it's fixed and merged this issue should be closed.
Good job everyone
Not fixed on 1.7.5 => https://github.com/PrestaShop/PrestaShop/pull/10365
It's fixed on 1.7.5.x