Order by errors first