Sort errors by line