Just going out on a limit and asking the question of whether you're sure the ordering is wrong? I'm going to guess that RequestId
is an identity column that is sequentially incrementing each time a row is added. Furthermore the CreateDate
is probably the timestamp when the row was added. Ignoring rows being added at the same time I would expect the order of the rows to be the same whether you ordered by RequestId
or CreateDate
. If I saw a RequestId
that had a CreateDate
higher than the rows after it then I would suspect it was added in a transaction but otherwise wouldn't matter.
Can you provide us the final version of the query you're running (not the code that is generating it) along with a snapshot of the data you're getting when the ordering seems wrong?