fix js table ordering for number of acts

note that any time we replace a cell content with a complex node, we
also must define a js ordering function for the cell

fix #482