i do "sort" Result of Directory() but it is not correct with Extension
- Code: Select all Expand view
- CASE nCol = LV_NAME
IF ::SortOrder = LVS_SORTASCENDING
ASORT( aDirOut, nStartAt + 1,, { | x, y | ( UPPER( x[ LV_NAME ] ), UPPER( y[ LV_NAME ] ), .T. ) } )
CASE nCol = LV_EXT
IF ::SortOrder = LVS_SORTASCENDING
ASORT( aDirOut, nStartAt + 1,, { | x, y | ( x[ LV_EXT ] + UPPER( x[ LV_NAME ] ) ) < ( y[ LV_EXT ] + UPPER( y[ LV_NAME ] ) ) } )
as you can "see" CDX is between C
how to change sort