Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am in trouble Sorting a field in crystal reports.

This is my output sorted data:

VB
2012-C1-6
2012-C2-7
2012-C3-8
2012-C4-9
2012-C5-10
2012-C1-1
2012-C2-2
2012-C3-3
2012-C4-4
2012-C5-5


I sort this using Record Sort Expert and i set it by Ascending order in Crystal Reports

Is there another way to sort it like this:

VB
2012-C1-1
2012-C2-2
2012-C3-3
2012-C4-4
2012-C5-5
2012-C1-6
2012-C2-7
2012-C3-8
2012-C4-9
2012-C5-10


I tried searching it on google but no luck finding near idea or answer in my problem.

Pls help. Thanks in advance.
Posted
Updated 25-Sep-12 10:41am
v2
Comments
Savalia Manoj M 26-Sep-12 7:07am    
What you want to sort? You want to sort only last digit??
chuan0308 26-Sep-12 21:31pm    
Can you show us the code you used for sorting?

1 solution

Looks like you are sorting on the value of the last element of the data, and then the center element. Create a formula field and use that as a sort field.

HTH
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900