add sort to sangam patches being applied
rework the patches so they can be immediately used