fn lexsort_to_indices(arrays: &[ArrayRef]) -> UInt32Array
Helper function to sort all the columns in an array