Extend Sorting to other tables