Implement client-side table sorting.

Addresses issue #39.

Signed-off-by: Max Fierke <max@maxfierke.com>