4 Replies - 370 Views - Last Post: 22 November 2012 - 01:40 PM Rate Topic: -----

#1 Luk3  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 15
  • Joined: 11-November 12

Richtextbox sort from A-z

Posted 22 November 2012 - 01:15 PM

Hello all :)

I have this situation where I need to sort my Richtextbox from A-Z (alphabetically). I've tried a few methods but none that worked for me :(

Please help me, any info would be great and again, please in layman's terms :)

Thank you!

Is This A Good Question/Topic? 0
  • +

Replies To: Richtextbox sort from A-z

#2 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: Richtextbox sort from A-z

Posted 22 November 2012 - 01:29 PM

View PostLuk3, on 22 November 2012 - 02:15 PM, said:

I have this situation where I need to sort my Richtextbox from A-Z (alphabetically). I've tried a few methods but none that worked for me :(/>

Please help me, any info would be great and again, please in layman's terms :)/>

What have you tried so far. If we knew, perhaps we could figure out just exactly what you want to sort.
Perhaps you want "Hello to all the DIC guys." to end up as "all DIC guys. Hello the to"?
Was This Post Helpful? 0
  • +
  • -

#3 Luk3  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 15
  • Joined: 11-November 12

Re: Richtextbox sort from A-z

Posted 22 November 2012 - 01:32 PM

View Postlar3ry, on 22 November 2012 - 01:29 PM, said:

What have you tried so far. If we knew, perhaps we could figure out just exactly what you want to sort.
Perhaps you want "Hello to all the DIC guys." to end up as "all DIC guys. Hello the to"?


Ah sorry, the richtextbox contains a list, one per line, and I'd like it sorted so it starts off with the A's, then b's etc. As for what I've tried, I can't remember, sorry :P
Was This Post Helpful? 0
  • +
  • -

#4 lucky3  Icon User is offline

  • Friend lucky3 As IHelpable
  • member icon

Reputation: 231
  • View blog
  • Posts: 765
  • Joined: 19-October 11

Re: Richtextbox sort from A-z

Posted 22 November 2012 - 01:37 PM

Just split the text by lines, add them to list, and use sort (in case you'll need to reverse it).
Was This Post Helpful? 0
  • +
  • -

#5 Luk3  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 15
  • Joined: 11-November 12

Re: Richtextbox sort from A-z

Posted 22 November 2012 - 01:40 PM

View Postlucky3, on 22 November 2012 - 01:37 PM, said:

Just split the text by lines, add them to list, and use sort (in case you'll need to reverse it).


Could you give me an example please? I'm not all that familiar with this subject :S
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1