I have a list of reference types that are sorted by a DateTime
property. Some of them have identical DateTime's
. For example, multiple baseball games starting at the exact same time.
I want to confirm that OrderBy
will sort the same way every time; that is to say because I provided the input in the order of A->B->C; that the output will also be A->B->C (all items have identical DateTime
).
I wrote a unit test to confirm that the order is preserved. The test passed. But without really knowing what is going on I still don't feel confident.
Can someone please confirm the OrderBy
behavior for me? I tried searching via google and couldn't find anything definitive.