# tablesorter

## Dealing with markup inside cells

### Flexible client-side table sorting

Back to documentation

NOTE!

- The textExtraction function setting for each column was added in version 2.0.12 (not part of the original plugin).
- The "First Name" column is sorting by the contents of the <strong> tag (in red).
- Added "table" and "cellIndex" variables to the textExtraction function (v2.1.2).

# Demo

First Name | Last Name | Age | Total | Discount | Date
--- | --- | --- | --- | --- | ---
Mr. Peter | Parker | 28 | $9.99 | 20% | Jul 6, 2006 8:14 AM
Dr. John | Hood | 33 | $19.99 | 25% | Dec 10, 2002 5:14 AM
Rep Clark | Kent | 18 | $15.89 | 44% | Jan 12, 2003 11:14 AM
Rev Bruce | Almighty | 45 | $153.19 | 44% | Jan 18, 2001 9:12 AM
Capt Bruce | Evans | 22 | $13.19 | 11% | Jan 18, 2007 9:12 AM

# Javascript

# HTML

Next up: Applying widgets ››