I'm not having much luck in getting correct sorts with pricing as I belive the $ sign is interfering but I cannot get the replace function to work.
My HTML
<span class="field-content price">$486.15</span>
My jquery function
price : function( $elem ) {
return parseFloat( $elem.find('.price').text().replace($, '') );
}
For some reason this does not seem to be removing the $ sign. Am i missing something in the function?
Im also not sure if the decimal point could also be causing problems with the sort
Thanks in advance