Sorting static and dynamic routes. Weighting dynamic routes