<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,7 @@
 //   zebra: true,                        // Stripe the table, also on initialize
 //   details: false,                     // Has details every other row
 //   paginator: false,                   // Pass a paginator object
+//   onSorted: function(){},             // Callback to run after sort
 //   dont_sort_class: 'nosort',          // Class name on th's that don't sort
 //   forward_sort_class: 'forward_sort', // Class applied to forward sort th's
 //   reverse_sort_class: 'reverse_sort'  // Class applied to reverse sort th's
@@ -24,6 +25,7 @@ var SortingTable = new Class({
     zebra: true,
     details: false,
     paginator: false,
+    onSorted: $empty,
     dont_sort_class: 'nosort',
     forward_sort_class: 'forward_sort',
     reverse_sort_class: 'reverse_sort'
@@ -129,6 +131,7 @@ var SortingTable = new Class({
       index++;
     }
    this.tbody.inject(before, 'after');
+   this.fireEvent('sorted', this);
   },
 
   load_conversions: function() {
@@ -223,4 +226,3 @@ SortingTable.stripe_table = function ( tr_elements  ) {
     if (counter % 2) tr.addClass( 'alt' );
   });
 }
-</diff>
      <filename>sorting_table.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2eea024f006aa4ca922cfaf634745ca8b968c286</id>
    </parent>
  </parents>
  <author>
    <name>Matthew Beale</name>
    <email>mixonic@synitech.com</email>
  </author>
  <url>http://github.com/mixonic/tables_on_cows/commit/943bbbb746e573c59531508f99b048d24af04c76</url>
  <id>943bbbb746e573c59531508f99b048d24af04c76</id>
  <committed-date>2009-06-30T05:05:38-07:00</committed-date>
  <authored-date>2009-06-30T05:05:38-07:00</authored-date>
  <message>Add an hook for onSorted, from zgambino: http://github.com/zgambino/tables_on_cows</message>
  <tree>3ee1f11b545f5095b00e731bebab296e80a11072</tree>
  <committer>
    <name>Matthew Beale</name>
    <email>mixonic@synitech.com</email>
  </committer>
</commit>
