$files->groupBy($field, $caseInsensitive = true)

Groups all files in the collection by a given field.