in reply to Re: Re^6: sort array by value in it
in thread sort array by value in it
Not because it was a terribly hard problem to solve but because there was too much room for speculation in the requirements.
Heh. I know what you mean. I think there is something here worth meditating on. Your solution to me had all the appearances of a hard sweated solution to stay within the box. He said "sort strings by part of the string", and you worked that angle. But thinking out of the box you can see that in fact its more like "construct a bunch of strings and then use part of them as a sort key" which when you observe that the construction really means joinging the very criteria we want to key by, its a lot clearer that a different approach entirely is better. And this is related to one of my rants of the past, if you stick too closely to a spec, then sometimes solutions become unfeasable. Changing the spec is ok so long as the end result is more or less the same.
This is partly because my mind still hadn't stopped thinking about "what ifs" and also because I am not as great a multi-tasker as I delude myself into believing.
Seems a good effort to me. And I know you have a lot on your mind. :-)
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
|
|---|