Wrong sorting data when grouping

Dear sir,

i use this sql command to retrieve data into datatable and pass it to report

Select col1, col2, col3, col4, col5, col6
From MyTable
Order by col1, col2, col3, col4

if not GROUPING data in report the output is sorting right .
But when GROUPING by col1 and col2 like this

Group header1 condition = col1
Group header2 condition = col2
Data (display col3, col4)

col3 and col4 is not sorting correctly


PLEASE HELP ME

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.