Browse Source

docs : fix sorting example code; Closes #186

thx @loopasam !
pull/235/head
David DeSandro 13 years ago
parent
commit
be166bc748
  1. 2
      _posts/docs/2010-12-07-sorting.mdown

2
_posts/docs/2010-12-07-sorting.mdown

@ -72,7 +72,7 @@ For numerical data, we can convert a text value into a number with `parseInt()`
getSortData : { getSortData : {
// ... // ...
number : function ( $elem ) { number : function ( $elem ) {
return parseInt( $elem.find('.name').text(), 10 ); return parseInt( $elem.find('.number').text(), 10 );
}, },
weight : function ( $elem ) { weight : function ( $elem ) {
return parseFloat( $elem.find('.weight').text() ); return parseFloat( $elem.find('.weight').text() );

Loading…
Cancel
Save