Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
What you're getting is actually the correct response from SQL... Unless you specify an ORDER BY on a query, the results will come back in the order of the clustered index on the server (which is the order in which the records actually reside on disk). If you want to have the records come back in the same order as the parents, you'll need to write a manual query and join the records to the parent table (you don't have to retrieve any fields from the parent table, but the parent has to be part of the query if it's going to be used in the ORDER BY) and then order the records how you want them ordered. The best way to create the where clause for the records is to use an "IN" and provide a list of the parent PKs in parameters (just like the FillByParent does).
|