Results 1 to 2 of 2

Thread: Sort a listview but not alphabetically

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Washington DC
    Posts
    63

    Question Sort a listview but not alphabetically

    Hello all,
    I'm working with a listview. I need to sort the listview in this order. (These are names of data types and they are stored in one of the listview's columns)

    BLKD
    DBLE
    BLKR
    REAL
    BLI4
    INT4
    BLI2
    INT2
    BLI1
    INT1
    BLL1
    LOG1

    As you can see, they are not alphabetical. There are approx. 20,000 to 30,000 items in the listview, so you can understand my need for an efficient algorithm.

    I've considered using an enumeration, but apparently REAL is a keyword in VB.

    Help greatly appreciated.

    Cedric

  2. #2
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179
    add a number before your text:
    eg.
    0001_BLKD
    0002_DBLE
    ...

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