From 4d78e6bb2207fb5021488659a0736b015539bdc4 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 23 Jan 2017 10:04:02 +0100 Subject: [PATCH] act by rate --- Yavsc/Controllers/HomeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yavsc/Controllers/HomeController.cs b/Yavsc/Controllers/HomeController.cs index 1fef45de..1b2d3e85 100644 --- a/Yavsc/Controllers/HomeController.cs +++ b/Yavsc/Controllers/HomeController.cs @@ -30,7 +30,7 @@ namespace Yavsc.Controllers public IActionResult Index() { - return View(DbContext.Activities); + return View(DbContext.Activities.OrderByDescending(a=>a.Rate)); } public IActionResult About()