Sort project ids in order