Permalink
Browse files

Update Default Ordering of Groups when null

  • Loading branch information...
maxpiva committed Dec 5, 2017
1 parent 77a9cd7 commit 753a31951f37f3ddcfd48e2ef5151b5878eab4b0
Showing with 3 additions and 2 deletions.
  1. +1 −1 Shoko.Commons
  2. +2 −1 Shoko.MyAnime3/ViewModel/Helpers/ShokoServerHelper.cs
@@ -316,7 +316,8 @@ public static List<VM_AnimeGroup_User> GetAnimeGroupsForFilter(VM_GroupFilter gr
try
{
List<VM_AnimeGroup_User> rawGrps = VM_ShokoServer.Instance.ShokoServices.GetAnimeGroupsForFilter(groupFilter.GroupFilterID,
VM_ShokoServer.Instance.CurrentUser.JMMUserID, false).CastList<VM_AnimeGroup_User>() ?? new List<VM_AnimeGroup_User>();
VM_ShokoServer.Instance.CurrentUser.JMMUserID, false).CastList<VM_AnimeGroup_User>() ?? new List<VM_AnimeGroup_User>();
BaseConfig.MyAnimeLog.Write("Group Sort of "+groupFilter.GroupFilterName+" Criterias: "+groupFilter.SortingCriteria);
return groupFilter.SortGroups(rawGrps.AsQueryable()).ToList();
}
catch (Exception ex)

0 comments on commit 753a319

Please sign in to comment.