Extend table sorting to other scripts