Skip to main content

Implement sorting for ListView columns without changing your views.

Project description

Implement sorting for ListView columns without changing your views.


Get it from the cheeseshop:

pip install django_resort


Read on:

  1. Include django_resort in your INSTALLED_APPS settings.

  2. Load the tags:

    {% load resort %}
  3. Jut before the for loop iterating through the object_list, include:

    {% auto_sort object_list %}
    {% for object in object_list %}
  4. In your table header:

    <th>{% sort_link field.verbose_name|title %}</th>


This project is primarily based upon django-sorting which it seems is no longer actively maintained as I could not get it to install using pip.


0.1.0 (2013-12-3)

  • First release on PyPI.

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_resort-0.1.0.tar.gz (6.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page