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 :)
|
|---|