Skip to content

Configurable Sort Order

Latest
Compare
Choose a tag to compare
@BlakesHeaven BlakesHeaven released this 17 Feb 23:18

New - Both Parents and Children can be sorted either Ascending or Descending as directed by the Advanced General Setting, "Order content by" {Position/Date}. Sort Order Configurable in Plugin Settings.

Fixes an issue that needed the sorting of the menu reversing for the parents - especially in the Archive section to make sure the older items disappeared first.

The array $publishedPagesByDate has been dropped because it does not have a 'rawDate' entity to be used by the sorting. Now, "$parents = buildParentPages() " is used for both order by Date as well as order by Position. This reduced the code by quite a bit.

Removed deprecated variables and code refactoring.

Tested against 3.10.x. and 3.11.x