In ancient times build targets had to be sorted topologically. Sometimes this behavior can still be observed today.