table column sorting: fixed for dataset list, added for statistics.

Fixes issue #716  numeric table sorting for datasets list and adds table sorting to statistics table