I've implemented table sorting based on clicking of headers, as laid out in a previous post. In order to get sorting working reliably, I went with an object-based model rather than nested arrays. Tested and working on the AdaptiveDB site; I'm now going to test it on Properties dev, then live.