integrated map and table codebases
table sorting by distance