Remove old cruft
Add sortMostSpecificOnly for sorting only the outermost leaves