add support for through-table ordering. closes #363