add inbound table and refactor sort methods. inbound not working, possibly because of a missing stop