HPCC-10824 Add sort function to preflight result for target clusters

The existing preflight result table in target clusters page is not
sortable. The sort function is added in this fix.

Also fix several problems in the existing sortabletable.js.

Signed-off-by: Kevin Wang kevin.wang@lexisnexis.com