ordering results by overridings count