change routing history logic for table sorter
Merge branch 'modify_test'