I created a new sort criteria to sort locations by proximity centered at Distance/Proximity argument.
However, I can not make sure that I have made a good approach because I am unfamilar with drupal codes.

Comments

kristi wachter’s picture

Status: Needs review » Needs work

Thanks for this great start!

The patch applied just fine for me, but it didn't successfully sort my view results. I was using Zip Code, not Lat/Long; I don't know if that makes a difference.

I think it needs more testing and a few fixes, but it's a great idea.

eliosh’s picture

For me, it works really great.
I'm using it with a LatLong argument.

I also suggest another patch, to have a field with distance, using argument and not filter.

jeff.k’s picture

Thanks!

legolasbo’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Closing old D6 issues as D6 is end of life