* Fix logic error on table sort function * Fix injected logic error from previous change * Incorporate Cooldude2606's review comments Added ldoc Removed a couple of redundant boolean checks