Add sorting in requests for controllers and managers. Now it works for
groups and types (firt version to test).