in reply to Re: why doesn't this sort work?
in thread why doesn't this sort work?

does a foreach loop guarantee to go through elements in order? perhaps the sort is ok but the foreach loop after is not

Replies are listed 'Best First'.
Re^3: why doesn't this sort work?
by Anonymous Monk on Dec 28, 2010 at 01:00 UTC
    does a foreach loop guarantee to go through elements in order?

    Absolutely