descending

View Source

Summary

Comparator function for sorting matches from most specific to least specific.

Signature

function descending(a: RoutePatternMatch, b: RoutePatternMatch): number;

Params

a

the first match to compare

b

the second match to compare

Returns

positive if a is less specific, negative if more specific, 0 if equal