|Think about Loose Coupling|
Re: How to sort output?by Zaxo (Archbishop)
|on Jul 22, 2007 at 07:11 UTC||Need Help??|
This is a good use for a Schwarzian transformation, though you could have set it up previously. Replacing line 50:
The idea is to bundle the raw data with the extracted data to sort on, do the sort, then strip out the raw data again. It would be more thoughtful to keep the sort data from earlier. The regex I use could be slimmed down, it's a first cut.
All the lines which don't match get grouped together at the start with my construction.