Reorder patches and dirty repos