The information in this article applies to:
SUMMARYThe documentation for the SortOrder Property of a ListView control states that you can "sort from the beginning of the alphabet (A-Z), the earliest date, or the lowest number." This is incorrect. All sorting is done only on the textual representation of the items being sorted. This means, for example, that the number "11000" will be sorted before the number "2000" if a sort is done in ascending order. This can also affect the sorting of dates, depending on the format of the date in the text property of the ListItem object. MORE INFORMATIONThis sorting functionality is provided by the Comctl32.dll file that ships with all 32-bit Windows operating systems. Comctl32.ocx wraps this .dll file to provide Windows 95-style common controls to Visual Basic programmers. If a series of documents is created and sorted in Explorer, it will show the same behavior noted in this article and demonstrated in the Step To Reproduce sample below. When in ascending order, numbers will be sorted before alphabetic characters, and A will be sorted before Z. Special characters such as accents, umlauts, tildes, and carets are sorted immediately after the character preceding them, without the corresponding special character. These rules are reversed when sorting is done in descending order. Steps To Reproduce Behavior:
Additional query words: kbVBp400 kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbControl
Keywords : kbdocfix kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |