diff --git a/assets/player.js b/assets/player.js index 60c2bf9..6935a6d 100644 --- a/assets/player.js +++ b/assets/player.js @@ -57,6 +57,11 @@ function webcallFrameResize() { element.style.width = w; } ) + + // Sort the players alphabetically by ID + Array.from(document.body.querySelectorAll(".frame")) + .sort((a, b) => a.id > b.id ? 1 : -1) + .forEach(node => document.body.appendChild(node)) } function createPlayer(stream, muted, volume) {