擅长:python、mysql、java
<pre><code>job_list = Job_Posting.objects.order_by('fkey__Job_Position')
</code></pre>
<p>从<a href="https://docs.djangoproject.com/en/1.9/ref/models/querysets/#order-by" rel="nofollow">documentation</a>开始:</p>
<blockquote>
<p>To order by a field in a different model, use the same syntax as when
you are querying across model relations. That is, the name of the
field, followed by a double underscore (__), followed by the name of
the field in the new model, and so on for as many models as you want
to join.</p>
</blockquote>