How to order by included model property in LoopBack JS
<p>I have a person model which has a belongsTo relations with a meeting model. I´m doing the query</p>

<pre><code>Person.find({include:['meetings']})
</code></pre>

<p>Which gives me a result like this one:</p>

<pre><code>    person:{
        name:"person 1",
        age: 15
        meeting:{
            name: "The meeting",
            date:"June 26, 2019 11:13:00"
        }
    }
</code></pre>

<p>What I would like to do is to order the results of the find function by the meeting date. Is there any way I can achieve this on a single query?</p>

<p>I´ve tried this:</p>

<pre><code>Person.find({include:['meeting'],order:"meeting.date DESC"})
</code></pre>

<p>But server crashed when trying this. Can anyone help me achieve this?</p>