in reply to sort on numbers embedded in text

Your specification is incomplete. When you say
Those that are BLOGOddd-FMT-FMT need to be sorted seperately, but also numerically.
do you mean the result can show up in an entirely separate list, or all at the end of the ddd-FMT-FMT list as a group? And then there's
Everything else can be sorted normally,
which again doesn't say if those elements should end up as a string sort (aside: is that what you mean by "normal" {grin}?) in yet a third output list, or put after or before the other two sort lists in the same output.

Most of the battle of the code is getting the specification right. And then the coding falls naturally from that. So, if you want a solution that fits your problem, please give us a codeable specification.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE: Re: sort on numbers embedded in text
by d4vis (Chaplain) on Oct 09, 2000 at 19:48 UTC
    My bad.
    The answer to both questions is yes. ;)
    All three lists in the same output works just as well for this purpose as three seperate lists. Whicever way is the simpler. Heh...and by "normal" in this case I meant a simple alphabetical sort, though my definition of normal is subject to change without notice.
    Clarity, unfortunately, is not always my strong point.

    ~d4vis the scribe
    #!/usr/bin/fnord