Fix #179 (Dimensions not sorted)

reactivate sortAxis function from comparing-branch