Hmm, as I recall that from my college days, Renato, there's a formula to calculate the distance between two degree unit points.
BUT you can't insert that into an aggregate, as far as I know, because there are no trigonometric functions. You can check if your case allows for an approximation and, if so, you can add an attribute to your aggregate and sort by it.
Ekincam: can you be a bit more specific on what is blocking you?
BUT you can't insert that into an aggregate, as far as I know, because there are no trigonometric functions. You can check if your case allows for an approximation and, if so, you can add an attribute to your aggregate and sort by it.
Ekincam: can you be a bit more specific on what is blocking you?