#18559: Using only route priority to order routes (including service routes)

Work Item: 18559

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-03-31 08:55:59 +02:00
parent 88e8037a5f
commit 3fcc9bdefd

View File

@@ -26,7 +26,6 @@ namespace Orchard.Mvc.Routes {
public void Publish(IEnumerable<RouteDescriptor> routes) {
var routesArray = routes
.OrderByDescending(r => r.Priority)
.ThenByDescending(r => r.Route is ServiceRoute ? -1 : 1)
.ToArray();
// this is not called often, but is intended to surface problems before