我想这样做:
{% for movie in movie_list | sort(movie.rating) %}
但那不对......文档含糊不清......你怎么在Jinja2做到这一点?
python sorting jinja2
jinja2 ×1
python ×1
sorting ×1