Sorts all components in cpts into the Category categories listed in
categories.
| cpts |
List of components. |
| categories |
List of categories to sort components into. |
| check_duplicates |
Whether to check for duplicates. |