Results 1 to 4 of 4

Thread: Listbox sorting

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Årdal, Norway
    Posts
    5

    Smile

    Is there anyway to sort the listbox using a different sorting that it's default? Like instead of sorting A, B, C and so on, can I alter it to sort for example A, C, B...?

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Making your own sorting order is possible but it will drain performance, why bother?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    Kedman, I'd have to say your response was not very nice.

    Setting the Sorted property to True just doesn't always cut it. Why?

    What if you have a list of numbers, and you need them listed numerically? What if you need it sorted backwards? Notice the word NEED. When I was writing a program for a company, I NEEDED for the numbers to be numeric, and yes, while it is incredibly slow and annoying, there was a good reason for it.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Hmm, it was not meant to sound offensive. That was not a retoric qwestion. Well i know you can sort things in other ways but you would need to create your own comparing method, and in vb that would just slow down the soring process considerably. Do you need this solved Concorde?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width