errorsort
qsort(errors, nerrors, sizeof(Eptr), errorsort);
static int errorsort(const void *, const void *);