re-active sortAxis function for 2 multiple dimensions