exp:channel:categories does not return the categories in the correct order (as sorted in the UI) neither there is any parameter that allows sorting them.
Since there is no specific parameter I’d expect the order the same as they maintained/sorted in the categorgy group listing, but it seems they are returned ordered by their category IDs.
We are using the style parameter to output a nested version, so we cannot re-order them ourselfs that easy.
Is there any way to have them returned (in already nested markup) in the order as maintained in the category group UI?
Argh! Good point. Cache (EE/server, not client) it is/was, thanks Rob!
Lars
Hello @ geometry dash lite, If the built-in functionality doesn’t support ordering as you desire, you might consider using a custom SQL query to fetch categories in the desired order. You can retrieve the categories from the database and sort them according to your needs. However, this requires knowledge of SQL and may not be ideal for all users.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.