I have problem with sorting and grouping correctly. Basically my database returns something like:
VALUE GROUP ORDER
--------------------
23 G1 100
73 G2 200
344 G2 300
64 G1 400
534 G3 500
235 G3 600
255 G3 700
25 G1 800
75 G1 900
Now what I need is data grouped by GROUP and in order by ORDER. I will show or hide detail groups (different then G1) So I will have
G1 only
NOW THERE IS THE PROBLEM:
How to show Group 1 splitted by details group in between to have it like
G1 100
G2 300
G1 400
G3 700
G1 800
This is for purpouse of showing Balance Sheet with or without details.
VALUE GROUP ORDER
--------------------
23 G1 100
73 G2 200
344 G2 300
64 G1 400
534 G3 500
235 G3 600
255 G3 700
25 G1 800
75 G1 900
Now what I need is data grouped by GROUP and in order by ORDER. I will show or hide detail groups (different then G1) So I will have
G1 only
NOW THERE IS THE PROBLEM:
How to show Group 1 splitted by details group in between to have it like
G1 100
G2 300
G1 400
G3 700
G1 800
This is for purpouse of showing Balance Sheet with or without details.