Order target list, so targets which have a PROVIDES defined are in front.