mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -25,8 +25,8 @@ namespace Orchard.Mvc.Routes {
|
|||||||
|
|
||||||
public void Publish(IEnumerable<RouteDescriptor> routes) {
|
public void Publish(IEnumerable<RouteDescriptor> routes) {
|
||||||
var routesArray = routes
|
var routesArray = routes
|
||||||
.OrderByDescending(r => r.Route is ServiceRoute ? -1 : 1)
|
.OrderByDescending(r => r.Priority)
|
||||||
.ThenByDescending(r => r.Priority)
|
.ThenByDescending(r => r.Route is ServiceRoute ? -1 : 1)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
// this is not called often, but is intended to surface problems before
|
// this is not called often, but is intended to surface problems before
|
||||||
|
Reference in New Issue
Block a user