data-sort: fixed assignment before check
XXX