rearranges app spec lines