Tablesorter plugin: How to sort text/number column?

Tablesorter plugin: How to sort text/number column?

Hi All,

I have a table with a sequence number column, and the values are like:
1-1, 1-2, 1-3, 2-1, 2-2, ...10-1, 10-2,...

I use the tablesorter plug to give the table the sortable function, but when I try to sort the sequence number column, it gives me the order of 1-1, 1-2, 1-3, 10-1, 10-2, 2-1, 2-2,...which is not I want to get.

I need it be ordered as a number, not a string (before and after the '-' part).

I studied the tablesorter plugin document, and there are no related articles. The only similar example is the Triggers sortEnd and sortStart(Displaying sorting progress)
in which the table has a column with the value student1, student2, ...student10,..., and after sorting, it becomes student1, student2, student10,...The same issue is there.

I tried the Parser, writing your own function, but it seems to give the fixed numbers of values a set of numbers which are actually used to be sorted. It could not help in my case because my sequence numbers may have a lot.

Has anyone have similar problems and any working ways to solve? Thanks a lot!