added sort by error then alpha