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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...