Sorting by custom field
use Concrete\Core\User\UserList; $list = new UserList(); $list->sortBy('sponsor'); $endlist = $list->getResults();
But it errors out as it can't see the custom field 'sponsor'. Do I need to do this another way?
Are you creating the custom field with code or in the concrete5 UI?