Made toArray not sortable by type. Instead you can choose if types should be specified in the returned array or not.