It's interesting to see the solutions people come up with, based to a
very large extent on what they are comfortable with. "When all you
have is a hammer, all your problems start looking like nails" and all
that.

I'm as guilty of this as anyone. But trying to look at this as
objectively as possible, assuming Dennis's "Unixy" solution works (and
I think it does), it seems like the quickest and most straightforward
to me.

By the way, this technique has a name: It's the
decorate-sort-undecorate pattern (or idiom). It's very useful, and
can be applied in various ways in various languages.

John

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact copyright@midrange.com.

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.