Avatar of jwebster77
jwebster77
 asked on

Crystal Report Sort

Hi Everyone I have a crystal report.  I have a grouping in a report.  The grouping is called household and the typical value is something like this:

Mr & Mrs John and Jane Doe or something like that.  

I want the sort to be as such though on a different field called lastname in alpha asc order.

Right now because I have my grouping household which I do need so I can group like records it puts them in all kinds of order.
Crystal Reports

Avatar of undefined
Last Comment
James0628

8/22/2022 - Mon
Mike McCracken

Is there a field called lastname?

If so try this
Put the lastname field on the report in the detail section
Right click it
Click INSERT --> SUMMARY
Choose MAXIMUM or MINIMUM
Put the summary in the GF1
Delete the LASTNAME FIELD from the detail section
CLick REPORT --> GROUP SORT EXPERT
Click the dropdown and change NO SORT to ALL
Choose the SUMMARY field presented in the right box
Click OK

You can then delete the summary field from the group footer

mlmcc
ASKER CERTIFIED SOLUTION
James0628

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mike McCracken

Good point.

mlmcc
jwebster77

ASKER
Thank you!  This worked.  And thanks for the other advice on the question.  That may have worked as well but did not try it.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Mike McCracken

It will work and is useful if you want to sort by a summary like total sales which isn't a field in the data.

mlmcc
James0628

You're welcome.

 FWIW, yeah, the group sort would work too, and it can be very useful.  It wasn't necessary in this case, but it's something to keep in mind.  You may need it later.

 James