+ Reply to Thread
Results 1 to 2 of 2

Binary sorting?

  1. #1
    Registered User
    Join Date
    09-02-2004
    Posts
    1

    Binary sorting?

    Hello!

    In VBA I can set an option compare to binary in order to compare strings
    case sensitive. With that option set, "a" and "A" are treated as different
    values ("A" < "a")
    But if I use the sort method with MatchCase:=True the sort order is "a" <
    "A" !

    What I need is compare mode and sort mode to behave according to the same
    order of characters/strings.

    Is there a way around this? Can I sort binary? Or am I missing something else?

    Any help is appreciated

    Herbert Becker

  2. #2
    Tom Ogilvy
    Guest

    Re: Binary sorting?

    Not with the built in sort function. You would have to write your own.

    --
    Regards,
    Tom Ogilvy


    "Roderick" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hello!
    >
    > In VBA I can set an option compare to binary in order to compare
    > strings
    > case sensitive. With that option set, "a" and "A" are treated as
    > different
    > values ("A" < "a")
    > But if I use the sort method with MatchCase:=True the sort order is "a"
    > <
    > "A" !
    >
    > What I need is compare mode and sort mode to behave according to the
    > same
    > order of characters/strings.
    >
    > Is there a way around this? Can I sort binary? Or am I missing
    > something else?
    >
    > Any help is appreciated
    >
    > Herbert Becker
    >
    >
    > --
    > Roderick
    > ------------------------------------------------------------------------
    > Roderick's Profile:

    http://www.excelforum.com/member.php...o&userid=13981
    > View this thread: http://www.excelforum.com/showthread...hreadid=483489
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1