Adding debugging to help solve sort order