Incorrect categories sorting by ID (backend)

Phoca Gallery - image gallery extension
User avatar
Matysh
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Jan 2017, 15:20

Incorrect categories sorting by ID (backend)

Post by Matysh »

1. Open categories list
2. Set sorting by ID

Expected result:
Sorting by ID

Actual result:
WTF?!

I understand that its caused by parent\child categories sorting, but I want to see simple sorting by ID there.
Often need for me to open just created category.

Link to screenshot
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Incorrect categories sorting by ID (backend)

Post by Jan »

Hi, the tree of category is not violated. This means, that the categories are sorted by ID but only parent categories - all subcategories then just follow the tree.

So for example:

1 ... parent category
- 3 subcategory
2 ... parent category
4 ... parent category

will produce: 1,3,2,4

So the reason for this is to not break the tree. Of course this can be customized in the module, so you will skip creating the tree and will just display categories independent to tree. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply