A rewrite of the original table sort script that includes a few more features and a much faster sort routine architecture