jinja2: make compiled template deterministic for python3

set() doesn't have deterministic iteration order, this CL applies sort
where we need deterministic order.

Bug: 1194274
Change-Id: Id6211afeed963bd5b32410c636ee0421865cf18f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2912350
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#885928}
NOKEYCHECK=True
GitOrigin-RevId: 05517d97909fc71ae0291caa96de549868d2e359
4 files changed