src/main/java/org/eiichiro/bootleg/URITemplate.java
public int compareTo(URITemplate o) {
		if (template.equals(o.template)) {
			return 0;
		}
		
		int difference = template.split("/").length - o.template.split("/").length;
		return (difference == 0) ? 1 : difference * -1;
	}
public int compareTo(URITemplate o) {
		if (template.equals(o.template)) {
			return 0;
		}
		
		int difference = template.split("/").length - o.template.split("/").length;
		return (difference == 0) ? 1 : difference * -1;
	}
Compares this URI template to the specified one.
Returns <code> &lt; 0</code> if this URI template's segment (split by '/')
count is <b>greater</b> than the specified one, <code>&gt; 0</code> if
this URI template's segment count is <b>less</b> than the specified one
or this URI template's segment count is equivalent to the specified one.
This method is used for sorting URI templates according to the priority
{@code URITemplate#matches(String)} method is tested by {@link Routing}
class, so a stricter template (which has more segments) is prior to a
less one.

@param o URI template to be compared.
@return <code> &lt; 0</code> if this URI template's segment (split by '/')
count is <b>greater</b> than the specified one, <code>&gt; 0</code> if
this URI template's segment count is <b>less</b> than the specified one
or this URI template's segment count is equivalent to the specified one.
@see Routing