Added compare table sort