From dac4c6d137d943e467f43f4f9de0a0a91807d02a Mon Sep 17 00:00:00 2001 From: Chebotov Nikolay Date: Tue, 14 Apr 2020 00:17:20 +0300 Subject: [PATCH] Fix #292 --- DotNetRu.Clients.UI/Speakers/SpeakerDetailsViewModel.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DotNetRu.Clients.UI/Speakers/SpeakerDetailsViewModel.cs b/DotNetRu.Clients.UI/Speakers/SpeakerDetailsViewModel.cs index 88c7c912..f60a432f 100644 --- a/DotNetRu.Clients.UI/Speakers/SpeakerDetailsViewModel.cs +++ b/DotNetRu.Clients.UI/Speakers/SpeakerDetailsViewModel.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; - +using System.Linq; using DotNetRu.DataStore.Audit.Models; using DotNetRu.Utils.Helpers; @@ -11,7 +11,7 @@ using MenuItem = DotNetRu.Clients.Portable.Model.MenuItem; namespace DotNetRu.Clients.Portable.ViewModel -{ +{ public class SpeakerDetailsViewModel : ViewModelBase { private MenuItem selectedFollowItem; @@ -90,13 +90,13 @@ private void FillFollows() Name = $"{gitHubValue}", Parameter = SpeakerModel.GitHubUrl, Icon = "icon_github.png" - }); + }); } } public SpeakerModel SpeakerModel { get; set; } - public IEnumerable Talks => this.SpeakerModel.Talks; + public IEnumerable Talks => this.SpeakerModel.Talks.OrderByDescending(t => t.Sessions.FirstOrDefault()?.Meetup?.StartTime); public ObservableRangeCollection FollowItems { get; } = new ObservableRangeCollection();