Order particpants list


I want the list of participants will be ordered by the person who speaks the dominant speaker will be displayed at the top if it is possible as I do, if not can you tell me is where in the code we display the list after I will add the code side react thank you, I mean the list of videos and not the list of participants (thumbnails)
this function can be useful,? thanks for your help