Sorting subpages: visually sorted in panel, but not re-ordered

My content is structured like this:

β”œβ”€β”€ projects
β”‚   β”œβ”€β”€ 1-2011
β”‚   β”‚   β”œβ”€β”€ 1-project-one
β”‚   β”‚   β”œβ”€β”€ 2-project-two
β”‚   β”‚   β”œβ”€β”€ 3-...
β”‚   β”‚   └── year.txt
β”‚   β”œβ”€β”€ 2-2012
β”‚   β”‚   β”œβ”€β”€ 1-project-one
β”‚   β”‚   β”œβ”€β”€ 2-project-two
β”‚   β”‚   β”œβ”€β”€ 3-...
β”‚   β”‚   └── year.txt
β”‚   β”œβ”€β”€ 3-2013
β”‚   β”‚   β”œβ”€β”€ 1-project-one
β”‚   β”‚   β”œβ”€β”€ 2-project-two
β”‚   β”‚   β”œβ”€β”€ 3-...
β”‚   β”‚   └── year.txt
β”‚   β”œβ”€β”€ 4-2014
β”‚   β”‚   β”œβ”€β”€ 1-project-one
β”‚   β”‚   β”œβ”€β”€ 2-project-two
β”‚   β”‚   β”œβ”€β”€ 3-...
β”‚   β”‚   └── year.txt
β”‚   └── projects.txt
└── site.txt

Blueprints:
projects.yml

title: Projects
pages: true
  template: year
  sort: title desc
files: false
fields:
  title:
    label: Title
    type:  text
title: Projects
pages: true
  template: project
files: false
fields:
  title:
    label: Title
    type:  text

I’ve added more years and projects, and they are visually being sorted in the panel, but the actual β€˜order’ number of the directories is not updating. Is this the expected behavior?

Core: 2.4.1
Toolkit: 2.4.1
Panel: 2.4.1

Hm, the order numbers should actually change, and they do actually change, don’t they? I have a bit of a problem following the quick GIF, but it seems that at one point 2016 has order number 2, at another point order number 3, while they are still being shown sorted by title.

Shouldn’t the sorting be done by using an extra field like year, such as

pages:
  sort: year asc

?

Using the title with a number usually leads to this behaviour as the internal sorting gets confused. Or has this been changed recently?

A title that starts with a number is only a problem if the number is followed by text. Digit-only folder names can be used without any problem.

@SQBiz

I only tested with 2.5.1 for the moment, and while sorting seems to work for me at times with these settings, it seems to be impossible to achieve a particular sorting number in the pages view without prior moving the page to the invisible section and then back, while it is perfectly possible to change the sorting number in the single page view. I’ll create an issue on GitHub,

1 Like