fix sorting for error then alpha