web/apps/hello-tracking/js/hello-tracking.js
function sortRaddecsAndHighlight(transmitterId) {
  let trs = Array.from(tbody.getElementsByTagName('tr'));
  let sortedFragment = document.createDocumentFragment();

  trs.sort(sortFunction);

  trs.forEach(function(tr) {
    if(tr.id === transmitterId) {
      tr.setAttribute('class', 'monospace animated-highlight-reelyactive');
    }
    else {
      tr.setAttribute('class', 'monospace');
    }
    sortedFragment.appendChild(tr);
  });

  tbody.appendChild(sortedFragment);
}
function sortRaddecsAndHighlight(transmitterId) {
  let trs = Array.from(tbody.getElementsByTagName('tr'));
  let sortedFragment = document.createDocumentFragment();

  trs.sort(sortFunction);

  trs.forEach(function(tr) {
    if(tr.id === transmitterId) {
      tr.setAttribute('class', 'monospace animated-highlight-reelyactive');
    }
    else {
      tr.setAttribute('class', 'monospace');
    }
    sortedFragment.appendChild(tr);
  });

  tbody.appendChild(sortedFragment);
}
function sortRaddecsAndHighlight ( transmitterId ) { let trs = Array . from ( tbody . getElementsByTagName ( 'tr' ) ) ; let sortedFragment = document . createDocumentFragment ( ) ; trs . sort ( sortFunction ) ; trs . forEach ( function ( tr ) { if ( tr . id === transmitterId ) { tr . setAttribute ( 'class' , 'monospace animated-highlight-reelyactive' ) ; } else { tr . setAttribute ( 'class' , 'monospace' ) ; } sortedFragment . appendChild ( tr ) ; } ) ; tbody . appendChild ( sortedFragment ) ; }
Sort the raddecs in the table, highlighting the given transmitterId
Sort the raddecs in the table highlighting the given transmitterId