<?php

// Add the tablesorter style sheet
$GLOBALS['TL_CSS'][] = 'assets/jquery/tablesorter/' . $GLOBALS['TL_ASSETS']['TABLESORTER'] . '/css/tablesorter.css|static';

?>

<script type="text/javascript" src="<?php echo TL_ASSETS_URL; ?>assets/jquery/tablesorter/<?php echo $GLOBALS['TL_ASSETS']['TABLESORTER']; ?>/js/tablesorter.js"></script>
<script type="text/javascript">
  /* <![CDATA[ */
  (function($) {
    $(document).ready(function() {
      $('.ce_table .sortable').each(function(i, table) {
        $(table).tablesorter();
      });
    });
  })(jQuery);
  /* ]]> */
</script>
