getting the sorted + more logic in the patch function from stable/folsom
getting the sorted + more logic in the patch function from stable/folsom

stackforge/anvil,stackforge/anvil,mc2014/anvil,mc2014/anvil