Extended ElggGroup ? ?

hello,

I want to display the list of a new elggGroup created on a page. The plugin I'm developing is an extension of ElggGroup. a friend suggested me the Group_subtype plugin. but the setting does not meet my needs because I want some things automatic. Here is the query I use to get back the list of my objects:

<?php /** * Renders a list of camerproject by creation date */

 echo elgg_list_entities_from_metadata([ 'type' => 'group',
 'subtype' => Camerproject::SUBTYPE, 
'full_view' => false, 
'no_results' => elgg_echo('camerproject:none'), 
'distinct' => false, ]); 


but it does not work. all my new objects created are all in the newest of groups. I need your help thank you

regards,