sort: don't ignore Ordering in multidimensional sort [fixes #3607]