From be166bc748e733e973543d00bd2d852b11f2d6c7 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Wed, 18 Apr 2012 19:37:56 -0400 Subject: [PATCH] docs : fix sorting example code; Closes #186 thx @loopasam ! --- _posts/docs/2010-12-07-sorting.mdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/docs/2010-12-07-sorting.mdown b/_posts/docs/2010-12-07-sorting.mdown index a2a93e2..7e2aceb 100644 --- a/_posts/docs/2010-12-07-sorting.mdown +++ b/_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 : { // ... number : function ( $elem ) { - return parseInt( $elem.find('.name').text(), 10 ); + return parseInt( $elem.find('.number').text(), 10 ); }, weight : function ( $elem ) { return parseFloat( $elem.find('.weight').text() );