add jquery libs
add perpage var
add jquery files
use tablesorter. bug: client-side sorting vs server-side pagination