[jQuery] sorting digits
[jQuery] sorting digits
<div dir="ltr">Hi all,
Currently i am working on tablesorter plugin with jqery to sort
column values in a table. My problem is when there is mixed data in a
column like some numbers and "-" (when there is no data to display)
its sorting the digits treating as string. e.g. in a column if the
values are 7, 12, 9, 15, - then it treats 9 as a highest value. When i
sort it it arranges like 9,7,15, 12, -. Please let me know the solutions.
Thanks,
<font color="#888888">Swaroop</font><br clear="all">
--
Thanks and Regards,
Swaroop Kumar Patra
Email: <a href="mailto:swarooppatra@gmail.com">swarooppatra@gmail.com</a>
Mobile: +91-9886003849
</div>