validate heads sorted in DEPS