I have retreived a Recordset. What's the best means to sort it? I can't see anything in the API documentation. I want to do something like:
$user = $this->getUser();
$projects = $user->projects->orderBy("created_at");
.. but instead I have to do:
// get the currently logged in user, and their projects
$user = $this->getUser();
$projects = Projects::query()
->where("user_id = :user_id:")
->bind( array("user_id" => $user->id) )
->orderBy('id')
->execute();