The comments seem to be outdated, We do things in this order a) SectionPosition b) override by layout-after/layout-before c) sort by permissions d) sort by input file order e) sort by atom ordinal which is proper. http://llvm-reviews.chandlerc.com/D1292