This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes sort a csv file having phone numbers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Reply locked New topic
Author

sort a csv file having phone numbers

fioana elegant
Greenhorn

Joined: Oct 06, 2010
Posts: 16
how can i sort a csv file having msisdn (phone numbers)???

example:
9999912345
9999912354
9932445566

need to b sorted like
9932445566
9999912345
9999912354
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

How about putting the values in a list and then sort it?


Swastik
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Please do not post the same question more than once.
CarefullyChooseOneForum


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: sort a csv file having phone numbers
 
Similar Threads
Help Needed regarding reading the csv file
StreamTokenizer vs StringTokenizer
Write to and read from Excel file
Deleting duplicate numbers from a .csv file.
Struts FormFile (parsing .csv files)