Thread tagged as: Error

Category order being reset when editing


I've noticed that when saving changes to a category it looks like Perch is removing my own curated order and is reverting back to alphabetical.


  1. Click 'reorder' in categories and update settings
  2. Open up a category and click save
  3. List view has reset to automatic ordering


Perch: 3.0.10, PHP:, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO
Server OS: Linux, fpm-fcgi
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), root_analytics (2.0.0), perch_forms (1.9.1)
App runtimes: <?php $apps_list = [ 'perch_forms', 'root_analytics' ];
PERCH_PATH: /home/forge/
PERCH_CORE: /home/forge/
Image manipulation: GD Imagick
PHP limits: Max upload 32M, Max POST 32M, Memory: 512M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/forge/
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
James Wigger

James Wigger 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you mean the order in the control panel, or the order on your site?

It appears to be happening to both - there's no sort-order being set in the front-end listing code:

<?php perch_categories([
'set'      => 'sectors',
'template' => 'sectors/sector_in_mosaic.html'
]); ?>
<?php perch_categories([
'set'      => 'sectors',
'template' => 'sectors/sector_in_carousel.html'
]); ?>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, we'll take a look.

Cool, thanks Drew.