It's not a secret anymore!*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 1477
    
    6

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


Swastik
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8935
    
    9

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]
 
 
subject: sort a csv file having phone numbers