analysing errors returns sorted output