Sorting by ID Not Working in Category List

Phoca Cart - complex e-commerce extension
keep2000
Phoca Enthusiast
Phoca Enthusiast
Posts: 89
Joined: 14 Nov 2022, 12:04

Sorting by ID Not Working in Category List

Post by keep2000 »

Hello guys

In the admin interface, sorting by ID in the category list does not work. The chevron icon changes (ascending/descending), but the list order remains the same.

v5 beta94

Thanks :)
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 478
Joined: 07 Nov 2018, 14:55

Re: Sorting by ID Not Working in Category List

Post by Nidzo »

Works fine on my test site
https://imgur.com/1FxG3kq
keep2000
Phoca Enthusiast
Phoca Enthusiast
Posts: 89
Joined: 14 Nov 2022, 12:04

Re: Sorting by ID Not Working in Category List

Post by keep2000 »

Ah, it must be the multi-level structure. I have only one category at the first level, so ordering doesn't affect it.
My goal was to delete every category, but I can't delete a parent category if it has a child. So, I thought it would be a good idea to sort the directories in descending order by ID, ensuring that the child categories are deleted first, allowing me to delete all categories in a single step. However, it doesn't work that way in this case.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Sorting by ID Not Working in Category List

Post by Jan »

Hi, where there is unlimited count of possible category levels, the category is always ordered as the whole tree, to not mix parent and child categories together.
If you find Phoca extensions useful, please support the project
Post Reply