* Make top table sortable. * Recompute Sum% column contents after sorting. * Cleanups identified during review. * Simplify top table sorting by generating it in Javascript.