Link to home
Create AccountLog in
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.
Avatar of Mike McCracken
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
Avatar of James0628
James0628

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Good point.

mlmcc
Avatar of 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.
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
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