Browse Source

sort fix

master
Milad Karbasizadeh 11 years ago
parent
commit
f261be45cb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Sevomin.WebFrontend.Controllers/JobController.cs

+ 1
- 1
Sevomin.WebFrontend.Controllers/JobController.cs View File

@ -160,7 +160,7 @@ namespace Sevomin.WebFrontend.Controllers
{ {
return View(_jobRepository.ListAll() return View(_jobRepository.ListAll()
.Where(d => d.ExpireDate >= DateTime.Now) .Where(d => d.ExpireDate >= DateTime.Now)
.OrderByDescending(d => d.ExpireDate)
.OrderByDescending(d => d.CreateDate).ThenByDescending(d => d.ExpireDate)
.ToList() .ToList()
.Select(j => new JobMiniViewModel(j)).ToList()); .Select(j => new JobMiniViewModel(j)).ToList());
} }


Loading…
Cancel
Save