<?php

// Add the tablesorter style sheet
$GLOBALS['TL_CSS'][] = 'assets/mootools/tablesort/css/tablesort.css|static';

?>

<script src="<?= TL_ASSETS_URL ?>assets/mootools/tablesort/js/tablesort.js"></script>
<script>
  (function() {
    window.addEvent('domready', function() {
      $$('.ce_table .sortable').each(function(table) {
        new TableSort(table, '<?= $GLOBALS['TL_LANG']['MSC']['thousandsSeparator'] ?>', '<?= $GLOBALS['TL_LANG']['MSC']['decimalSeparator'] ?>');
      });
    });
  })();
</script>
