re-sort file structure