Sort by partition table by  partition range
Determine deltas for two partitioned tables
Fixes is some logic on determining table delta