Q: Change default order of Filters within ASP.Net MVC Is there anyway to force a custom IActionFilter to execute before a custom IAuthenticationFilter?
I'm familiar with the following documentation on filter ordering:
http://msdn.microsoft.com/en-us/library/gg416513%28v=vs.98%29.aspx
But I'm wondering if I can change it at all. I've implemented a custom IFilterProvider like the following but can't make my authorization filter (IAuthorizationFilter) execute after the UnitOfWork (IActionFilter). 
public class CustomFilterProvider : IFilterProvider
{
    public IEnumerable<Filter> GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor)
    {
        return new List<Filter>
        {
            new Filter(new UnitOfWork(), FilterScope.Global, 0),
            new Filter(new CustomAuthorization(), FilterScope.Global, 30),
        };
    }
}


A: Well it appears as though the best you can do is order Filters within Filter types unless you wanted to override the ControllerActionInvoker.InvokeAction method and completely change the default MVC pipeline for these things.
I've found Filters to be unpleasant to use. Wish they would have been implemented as decorators on top of actions so that we could wrap functionality around them easier.
