Make sure we're sorting by numbers, not strings.
This commit is contained in:
parent
d191914e2f
commit
9c58efeefd
|
@ -74,7 +74,9 @@
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
rates = _.sortBy( rates, 'tax_rate_order' );
|
rates = _.sortBy( rates, function( rate ) {
|
||||||
|
return parseInt( rate.tax_rate_order, 10 );
|
||||||
|
} );
|
||||||
|
|
||||||
return rates;
|
return rates;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue