Any comments please:
When MSDN describes CAtlList and/or CAtlArray as being ordered, it's
speaking to the order of the elements with respect to the order in which
they were inserted. It is not, however, speaking to the order of the
elements with respect to the elements' respective values. In other words,
if you insert elements "1", "4", "2", and "3" into a list in that order,
MSDN's use of the word "ordered" means that the order will be "1", "4", "2",
and "3" - not "1", "2", "3", and "4".
Indeed, there is no inherent sorting functionality in the ATL collection
classes - you'll have to roll your own. For a simple and straightforward
(albeit inefficient) example of such an implementation, see the
documentation for the CAtlList::SwapElements() method.
Regards,
Jason Cone
"Tom Alter" <Lord...@MSN.com> wrote in message
news:upZtAqtR...@TK2MSFTNGP14.phx.gbl...