TableSorter plugin parsing control

If you need to force the column type for the tablesorter control, the documentation says to use metadata classes like so:

 <th class="{sorter: 'text'}">first name</th> 

This is a pain to try to do in an XSLT, so I found another way.  This is how you force column type during tablesort initialization:

		headers: {
			1: { sorter : 'text' }

The column position is zero based, so this is forcing the sorter for the second column.

For more information, see:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s