apply wrap-and-sort to control files