Re: Sorting by multiple dependent fields

2011-03-23 Thread Ahmet Arslan
> I'm searching for things near your location (as specified > by longitude and latitude).  I've got the search > working correctly (with the help of NumericField), but now I > need to sort the results by distance from you.  The > closer things appear at the top of the list.  There is a contrib pac

Sorting by multiple dependent fields

2011-03-23 Thread Tim Koop
I'm trying to sort on two dependent fields. I realize that if they were independent I could use new Sort(SortField...) with lots of SortFields, but I need to compute something based on two fields. Let me explain: I'm searching for things near your location (as specified by longitude and lati