Build tools: fixed sorting technique in dependency analysis