You can do this in the report, in the sort expression you could do;
=Switch(Fields!myFld.Va
This approach is OK for simple scenarios, but I have to say that eoke's suggestion is the better route to take.
Main Topics
Browse All TopicsHi ,
I am using SSRS 2008. i want to know id i can custom sort the category values. In the category group properties i can only sort alphabetically. But my category values are not all char. Can i custom Sort. i ve attached the chart below.
I need the sort order to be something like this-
Pk3,Pk2,Pk1,1,2,3.......
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can do this in the report, in the sort expression you could do;
=Switch(Fields!myFld.Va
This approach is OK for simple scenarios, but I have to say that eoke's suggestion is the better route to take.
Deepmath did my solution not work for you? You should be able to apply any custom sort order you desire?
If you've not got may different categories you could do case sort something similar to the following:-
select * from myTable order by (case category
when 'b' then 0
when 'a' then 1
else 9999
end)
Which should give you all the category b's then a's then everything else.
You'll need to add a "when 'foobar' then x" for each category. The else simply catches any new or unspecified categories and puts them at the end of your result set.
Business Accounts
Answer for Membership
by: eokePosted on 2009-09-02 at 15:35:29ID: 25246313
Create a table or a temp table containing your categories and a sort order column then inner join and sort by the sort order column
Select allOpen in new window