Get SmartObjects ordered by distance to location set in request


I’m using the smart object system to find smart objects which fits the request params. However, I can’t find a way to get the result array ordered by distance to the location of the query box.

They are different ways to handle this but wanted to check first if this is not already supported.

Thank you