Keep errors infos in TreeSet

Sorts errors from lowest line to highest line in the error table.