﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1759	Strange listview sort	Eric	trancexx	"Hello,

I have a strange result with listview sort.

When i sort à listview on Windows 7 the sort seems to be good.

C:\Documents and Settings\XPMUser\Bureau\044-0610.txt
C:\Documents and Settings\XPMUser\Bureau\annotatif.txt
C:\Documents and Settings\XPMUser\Bureau\UTB.txt
C:\UTB rue de rivoli-indice-C.txt

But on Windows XP the sort is not the same

C:\Documents and Settings\XPMUser\Bureau\044-0610.txt
C:\Documents and Settings\XPMUser\Bureau\annotatif.txt
C:\UTB rue de rivoli-indice-C.txt
C:\Documents and Settings\XPMUser\Bureau\UTB.txt

Is it a Windows XP or Autoit Problem ?

(If you have 2 column on the listview the sort is good on windows XP too, but not with 1 column)

Here the code for try

Thanks

{{{
#include <GUIConstantsEx.au3>

#include <GuiListView.au3>

$gui = GUICreate(""titre"", 730, 490, -1, -1, -1)
$listefichier = GUICtrlCreateListView(""Fichiers"", 20, 60, 430, 340) 

GUICtrlCreateListViewItem(""C:\UTB rue de rivoli-indice-C.txt"", $listefichier) 
GUICtrlCreateListViewItem(""C:\Documents and Settings\XPMUser\Bureau\UTB.txt"", $listefichier)
GUICtrlCreateListViewItem(""C:\Documents and Settings\XPMUser\Bureau\annotatif.txt"", $listefichier)
GUICtrlCreateListViewItem(""C:\Documents and Settings\XPMUser\Bureau\044-0610.txt"", $listefichier)

_GUICtrlListView_SetColumnWidth($listefichier, 0, $LVSCW_AUTOSIZE)
 
GUISetState(@SW_SHOW) 

_GUICtrlListView_RegisterSortCallBack($listefichier)
while 1
$msg = GUIGetMsg()

    Select
        Case $msg = $GUI_EVENT_CLOSE

            exit

        Case $msg = $listefichier
            _GUICtrlListView_SortItems($listefichier, GUICtrlGetState($listefichier))
        case Else

    EndSelect

    WEnd

    _GUICtrlListView_UnRegisterSortCallBack($listefichier)
}}}
"	Bug	closed	3.3.9.5	Standard UDFs	3.3.6.1	None	Fixed		
