Results 1 to 9 of 9

Sort letters before numbers

Threaded View

  1. #1
    Registered User
    Join Date
    10-28-2008
    Location
    New Jersey
    MS-Off Ver
    2007
    Posts
    15

    Sort letters before numbers

    How can I sort a list of text lexographically (like in a dictionary), with exception that letters (A, B, C, ..., Z) come before numbers (0, 1, ..., 9). So "AAAA" would come before "AAA1A" because "A" comes before "1" in the fourth position.

    For example, sorting the following list:
    AAAB
    99
    AAA1A
    346AA
    ZAAA
    AAAA
    5689
    4AAA

    should give me:
    AAAA
    AAAB
    AAA1A
    ZAAA
    346AA
    4AAA
    5689
    99

    Thanks.
    Last edited by futamura; 08-03-2011 at 01:39 PM. Reason: Clarification

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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