add distance sorting to app: