brotkrueml / schema

TYPO3 extension providing an API and view helpers for schema.org markup
https://extensions.typo3.org/extension/schema
GNU General Public License v2.0
32 stars 9 forks source link

Bug in sorting of pages in automaticBreadcrumbSchemaGeneration #32

Closed davidsteeb closed 4 years ago

davidsteeb commented 4 years ago

Sorting the rootLine in BreadcrumbListAspect.php results in an array sorted by pid and does not reflect the hierarchical structure of the rootline. The exepected behaviour would be to reverse the order of the entries in $rootLine, not to resort the rows.

Example structure: Home (UID 1, PID 0) Page 1 (UID 2, PID 1) Subpage 1 (UID 33, PID 2) Sub-Subpage 2 (UID 22, PID 33) Sub-Sub-Subpage 4 (UID 111, PID 22)

Expected Breadcrumb Listitems:

Resulting now with \sort(&$rootLine);: