#18496: Fixing ServiceRoutes

Work Item: 18496

--HG--
branch : 1.x
This commit is contained in:
Laere
2012-03-09 18:08:08 -08:00
parent db685df5fc
commit 3fdd48033d

View File

@@ -25,8 +25,8 @@ namespace Orchard.Mvc.Routes {
public void Publish(IEnumerable<RouteDescriptor> routes) {
var routesArray = routes
.OrderByDescending(r => r.Route is ServiceRoute ? -1 : 1)
.ThenByDescending(r => r.Priority)
.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