Make sure we're sorting by numbers, not strings.

This commit is contained in:
George Stephanis 2015-08-12 17:18:46 -04:00
parent d191914e2f
commit 9c58efeefd
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@
} );
}
rates = _.sortBy( rates, 'tax_rate_order' );
rates = _.sortBy( rates, function( rate ) {
return parseInt( rate.tax_rate_order, 10 );
} );
return rates;
}