WebHost: Fix world sorting in /tutorial/ (#5785)

This commit is contained in:
Remy Jette
2026-01-15 11:21:44 -10:00
committed by GitHub
parent 0554bf4e2d
commit cda54e0bea

View File

@@ -128,8 +128,13 @@ def tutorial_landing():
"authors": tutorial.authors, "authors": tutorial.authors,
"language": tutorial.language "language": tutorial.language
} }
tutorials = {world_name: tutorials for world_name, tutorials in title_sorted(
tutorials.items(), key=lambda element: "\x00" if element[0] == "Archipelago" else worlds[element[0]].game)} worlds = dict(
title_sorted(
worlds.items(), key=lambda element: "\x00" if element[0] == "Archipelago" else worlds[element[0]].game
)
)
return render_template("tutorialLanding.html", worlds=worlds, tutorials=tutorials) return render_template("tutorialLanding.html", worlds=worlds, tutorials=tutorials)