Order results by geolocation

Haha, I’m glad to hear it @tflight.

I’m prototyping an API using tuupola’s slim-api-skeleton. It’s a cool project, but uses a number of tools that I’m unfamiliar with (and I assumed they were a part of Slim when I created this post). For example, Spot ORM is used to map calls to the database. Something like “SELECT * FROM todos;” is executed using:

$todos = $this->spot->mapper("App\Todo")
    ->all()
    ->order(["updated_at" => "DESC"]);

It looks handy, but it wasn’t clear how to order by computed fields. Looks like I’ll be looking into Spot ORM a bit now. Thanks for the help, Tim. :slight_smile: