DOC: ListView Sort Only on Text of ListItem (153021)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q153021 SUMMARY
The 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.
Modification Type: | Minor | Last Reviewed: | 7/14/2004 |
---|
Keywords: | kbControl kbdocfix kbinfo KB153021 |
---|
|