Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Sorting help

by cdarke (Prior)
on Dec 10, 2009 at 17:06 UTC ( [id://812243]=note: print w/replies, xml ) Need Help??


in reply to Sorting help

I started writing a custom sort function for you, but discovered that the first field is the same on all the records, so the actual sort is just on the last field (easier to use [-1] by the way). Not only that, I have no idea if the first field is fixed length, or what. What are the possible formats? With the final field, is it only numeric (will have to remove the quotes characters)?

Replies are listed 'Best First'.
Re^2: Sorting help
by mmittiga17 (Scribe) on Dec 10, 2009 at 17:09 UTC
    Thanks, that was just a short snippet of code. the data itself is very long and has many different values in field one. Thanks for your help

      You will get better results from us if you expend just a little more effort yourself. In this case winnowing your sample data down to just enough data to show the important test cases (probably three records in this case) would have helped a lot. Even better would be to reduce the problem to the essential components (sort by two fields) and provide suitable data for the sample problem rather than a mass of 'real' data that obscures the problem and the solution.


      True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://812243]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-28 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found