I and trying to set a starting sort direction on one groupinfo but it don't matter if I find the matching one and set it to sort direction ascending or clear them and add a new one the card view is unsorted at start see examples below. the card items will only become sorted if I click on the SiteLocationName field in the top right corner of the image, i have even tried triggering the methods below after the whole page is loaded using a button and still no effect.
private void OnBayList_Loaded(object sender, RoutedEventArgs e)
{
OnBayList.GroupCards("SiteRegion");
OnBayList.GroupNames.Clear();
OnBayList.GroupNames.Add(new GroupInfo() { Name = "SiteLocationName", SortDirection = SortingDirection.Ascending });
}
private void OnBayList_Loaded(object sender, RoutedEventArgs e)
{
OnBayList.GroupCards("SiteRegion");
var namehead = OnBayList.GroupNames.Single(i => i.Name.Equals("SiteLocationName"));
namehead.SortDirection = SortingDirection.Ascending;
}