Skip to content

Commit

Permalink
#5 Add default sorting for correct date order.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Fürschuß committed Jan 21, 2017
1 parent 982278e commit 6e84152
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Wuzlstats/Controllers/TeamsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public async Task<IActionResult> Index(string league, string sort, bool recent)
teams = teams.OrderByDescending(x => x.Wins + x.Losses);
break;
default:
teams = teams.OrderByDescending(x => x.LastGamePlayedOn);
break;
}

Expand Down

0 comments on commit 6e84152

Please sign in to comment.