There is a table of the following type, sorted by the Par_Id , Chi_id :
Par_id Chi_id 0 1 0 2 0 3 1 4 1 5 2 6 And it is necessary:
Sort by Par_id , with the Par_id value corresponding to some Chi_id (maybe several), we find this Chi_id in the Par_id field and sort it. Then the procedure is repeated until we run through all the elements.
Should take the following form:
Par_id Chi_id 0 1 1 4 1 5 0 2 2 6 0 3 Thanks to all!
Chi_idcondition" - under what condition? - kmv