title: Django: Is there a way to manually order objects in a ManyToManyField?
body: <p>Here is my models.py:</p>
  <pre><code>from django.db import models
  
  class Photo(models.Model):
    file = models.ImageField(upload_to='images')
  
  class Album(models.Model):
    photos = models.ManyToManyField(Photo,related_name=&quot;photos&quot;,blank=True)
  </code></pre>
  <p>admin.py</p>
  <pre><code>from .models import Photo, Album
  
  class AlbumAdmin(admin.ModelAdmin):
      filter_horizontal = (&quot;photos&quot;,)
  
  admin.site.register(Photo)
  admin.site.register(Album, AlbumAdmin)
  </code></pre>
  <p>Is there some way to manually order the models in the filter_horizontal, or do I just have to do all that in the views.py using python?</p>