sort docs by shortest endpoint uri format first.