This method converts a {@link DataList} to an {@link ArrayList} with an option to add an additional column to each list item to be used for sorting. This is particularly useful when you are trying to group or sort a list by a value on a somehow related object, or not able to query from the database.
Signature
public function to_array_list(DataList
$list,
[boolean
$additionalSortColumn = false] )
If you have MyObject with a has_one relation to OtherObject which then has a has_one to ThirdObject, you would pass the following for column: 'OtherObject.ThirdObject.FieldName where FieldName is on the ThirdObject