Need a program that sorts a text list by number of characters in ascending order....

Discussion in 'Programming' started by cobracommander, May 7, 2007.

  1. #1
    Hello,

    I have a huge list of text and I want to organize it so that it will put them in ascending order for instance

    L2
    Lis5555
    Li777
    List33333

    will go

    L2
    Li777
    Lis5555
    List33333

    for all of them.

    Someone made me a program but it's made in VB and everytime I load a huge list it will freeze on me. :\

    I've heard excel does it but I tried it and all it does is put it ascending order on some of them. Not throughout the whole list.
     
    cobracommander, May 7, 2007 IP
  2. cobracommander

    cobracommander Well-Known Member

    Messages:
    152
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #2
    I see plenty of guests but no members!
     
    cobracommander, May 7, 2007 IP
  3. plumsauce

    plumsauce Peon

    Messages:
    310
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    in excel, creat a column which is the string length of the strings, and then sort by string length. i leave it to you to look in the help file for the formula.
     
    plumsauce, May 9, 2007 IP
  4. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #4
    I can probably do this if you give me more info.

    Where is the text stored? Inside a regular .txt file? Something else?
     
    LeopardAt1, May 11, 2007 IP