How can i sort thumbnails?

Is there a way to sort thumbnails that has a video?
i found isVideoTrack and isMuted() but i dont know how to sort the thumnail list.