Sorting and Grouping

How could I write a custom sort that would allow me to display the idea of grouping.
For example: If I had two columns, Price and Type, when I sort on Price I want to basically sort on Type first, then on price.

thanks,
Mike

Please disregard, I found anwer in previous port “Multiple Column Sort”.