- Issue created by @dieterholvoet
- Status changed to Needs review
about 1 year ago 9:48am 5 February 2024 - last update
about 1 year ago 78 pass - First commit to issue fork.
- last update
12 months ago 78 pass
If a token type name contains only numbers (eg. 403, 404), array_multisort
resets the indexes (to 0, 1).
I discovered this issue when using tokens from the
Node Singles module →
in a Pathauto pattern, more specifically tokens of two node types named '403' and '404'. What should have been [node_singles:403]
became [node_singles:0]
.
Sort the keys separately and re-combine them with the values afterwards (see this StackOverflow answer)
Needs review
1.0
Code