Update calc-sort-errors.sh