private Comparison <IResource> IncludePatternOrder() { return((x, y) => { int xIndex = Include.GetMatchIndex(x.VirtualPath); int yIndex = Include.GetMatchIndex(y.VirtualPath); return xIndex - yIndex; }); }
private Comparison <ResourceWithMatchingPath> IncludePatternOrder() { return((ResourceWithMatchingPath x, ResourceWithMatchingPath y) => { int xIndex = Include.GetMatchIndex(x.MatchingPath); int yIndex = Include.GetMatchIndex(y.MatchingPath); return xIndex - yIndex; }); }