I am trying to do this:
{% for movie in movie_list | sort(movie.rating) %}
But that\'s not right...the documentation is vague...how do you
If you want to sort in ascending order
{% for movie in movie_list|sort(attribute='rating') %}
If you want to sort in descending order
{% for movie in movie_list|sort(attribute='rating', reverse = True) %}