Since much of the purpose of providing pretty facet paths is for SEO, the urls should be canonicalized as much as possible.
This could be achieved by sorting the active segments within postProcessItem before the segments are looped over to construct the path:
// Construct facet path after gathering all active segments.
// @todo: sort to avoid multiple urls with duplicate content?
foreach ($segments as $key => $segment) {
$item['#path'] .= '/' . $segment['alias'] . '/' . $segment['value'];
}
Comments
Comment #1
vrc3 commentedComment #2
dasjoimplemented, see