Replaced id_xxxxx with item, and moved the hash to be attribute
and sort the errors by count