Added location distance sorting