HPCC-11169 Add sort function for preflight result

The existing preflight result table in TargetCluster page is not sortable.
In this fix, the sort function is added.

Also fix multiple problems in the existing sortabletable.js.

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