|
|
|
|
@ -458,7 +458,7 @@ class Tournament(models.Model): |
|
|
|
|
matches.extend(group_stage.match_set.all()) |
|
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
|
# matches.sort(key=lambda m: (m.non_null_start_date(), m.index), reverse=True) |
|
|
|
|
matches.sort(key=lambda m: (m.start_date is not None, m.start_date, m.end_date is None, m.index)) |
|
|
|
|
matches.sort(key=lambda m: (m.start_date is None, m.end_date is not None, m.start_date, m.index)) |
|
|
|
|
|
|
|
|
|
return matches |
|
|
|
|
|
|
|
|
|
|