Adds sorting to section django template tag