add table sort javascript.

Signed-off-by: Colin Leung <colin@digi3studio.com>