Move most specific case to first