<snip>
> Any idea why the order of the items in the InvoiceLineItemCollection is not
> consistent when sorting the same group of items?
What sort of inconsistency are you encountering? If two items have the
same plan ID and plan beneficiary assignment ID, then the order of them
isn't defined by your comparison - is that what you're seeing?
Could you post a short but complete program which demonstrates the
problem?
See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
ChrisB - 26 Jul 2007 22:51 GMT
Jon,
While preparing a response to your question, I realized that the Guids on
which the sort is based vary each time the related unit test runs. When
this is taken into account, the sort code appears to be working properly.
Thanks for your help.
Chris
> <snip>
>
[quoted text clipped - 11 lines]
> See http://www.pobox.com/~skeet/csharp/complete.html for details of
> what I mean by that.
Jon Skeet [C# MVP] - 26 Jul 2007 23:06 GMT
> While preparing a response to your question, I realized that the Guids on
> which the sort is based vary each time the related unit test runs. When
> this is taken into account, the sort code appears to be working properly.
>
> Thanks for your help.
My pleasure. It's always nice when a solution can be found and my sole
contribution is hitting Ctrl-F1 which inserts the "Could you post
a..." text for me :)

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too