Sort enhancers by priority.
The highest priority number is the highest priority (reverse sorting).
RouteEnhancerInterface[] the sorted enhancers
protected function sortRouteEnhancers() {
$sortedEnhancers = array();
krsort($this->enhancers);
foreach ($this->enhancers as $enhancers) {
$sortedEnhancers = array_merge($sortedEnhancers, $enhancers);
}
return $sortedEnhancers;
}