fixed priority bug for sorting