My understanding is that it would sort just the field, not the entire row. For example, it would just swap @data$i$index, not the @data$i. If it does, I am not sure how to construct the custom comparison function. Could you point me towards some info that would get me started on learning how to construct a custom comparison function that would move an entire row of a multi-dimensional array instead of just the field?