Sort static routes by longest first