upgrade jquery tablesort and add sensible defaults

To sort tables correctly.

I was going to use this in my hr-cmstrs branch, but then decided against it.  I've done a bit of work here and didn't want to throw it away so I pulled those bits out.

@JonathanShaw can you have a goosey?