Provide a way to sort sparse matrix columns with a double transpose (#8316).