rearrange routing files
fix bug in changing sort order