needs axis in sort, see gh-2729