Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Anyone know how thia can be sorted alphabetically?
foreach (Member item in memberservice.GetMembersByGroup("PartnersGorup"))
Hi Peter
Have you tried using .OrderBy("Name") like memberservice.GetMembersByGroup("PartnersGroup").OrderBy("Name") for instance?
/Jan
Yes, i tried that, it didnt work.
membershipService.GetMembersByGroup("PartnersGroup").OrderBy(x => x.Name);
and
membershipService.GetMembersByGroup("PartnersGroup").OrderByDescending(x => x.Name);
work for me.
Thanks, do you think this approach can be used to sort by a member property?
Yes, found right away:
.OrderBy(x => x.GetValue("PROPERTY").ToString())
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Sorting GetMembersByGroup
Hi,
Anyone know how thia can be sorted alphabetically?
foreach (Member item in memberservice.GetMembersByGroup("PartnersGorup"))
Hi Peter
Have you tried using .OrderBy("Name") like memberservice.GetMembersByGroup("PartnersGroup").OrderBy("Name") for instance?
/Jan
Yes, i tried that, it didnt work.
membershipService.GetMembersByGroup("PartnersGroup").OrderBy(x => x.Name);
and
membershipService.GetMembersByGroup("PartnersGroup").OrderByDescending(x => x.Name);
work for me.
Hi,
Thanks, do you think this approach can be used to sort by a member property?
Yes, found right away:
.OrderBy(x => x.GetValue("PROPERTY").ToString())
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.