in reply to Re^3: How to perform different sorts on multiple sections of items in the same array
in thread How to perform different sorts on multiple sections of items in the same array

Please let me know if you still think I am having a senior moment and have got this aspect of the algorithm completely wrong.

No. I was :)

Looking again at your code, post reading your explanation, I now see the effect/purpose of your $type variable -- to effectively segregate and pre-order the three subsets of the data.

And, looking again at the OPs description, yours is just as valid an interpretation of it, as mine.

Sorry for having misinterpreted your code the first time; and thankyou for the patient explanation. I learnt something -- which is always nice :)


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^4: How to perform different sorts on multiple sections of items in the same array
  • Download Code