Rendering code refactor
This commit is contained in:
@@ -51,7 +51,7 @@ class Set:
|
||||
raise ValueError("All PlaylistEntries must have the same session_id")
|
||||
return cls(
|
||||
id=set_id,
|
||||
temes=[TemaInSet.from_playlist_entry(entry) for entry in entries],
|
||||
temes=[TemaInSet.from_playlist_entry(entry) for entry in sorted(entries, key=lambda e: e.id or 0)],
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user