Sort SCM builds correctly