index.js
// used by the table heading to set its class and trigger a sort
used by the table heading to set its class and trigger a sort
used by the table heading to set its class and trigger a sort
function sorts(listing, state, prop) {
  var className = (state.sort === prop) ? 'is-sorted' : '';
  return {
    className: className,
    onclick: function(e) {
      if (prop) {
        listing.sortBy(prop);
        state.sort = prop;
      }
    }
  }
}
function sorts ( listing , state , prop ) { var className = ( state . sort === prop ) ? 'is-sorted' : '' ; return { className : className , onclick : function ( e ) { if ( prop ) { listing . sortBy ( prop ) ; state . sort = prop ; } } } }
used by the table heading to set its class and trigger a sort
used by the table heading to set its class and trigger a sort