[core] Add pagination model concern
Add pagination to class_groups and remove sorting