Halli Hallo Hallöchen!
[autoit]#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiListView.au3>
#include <ListViewConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 631, 205, 192, 114)
$ListView1 = GUICtrlCreateListView("Name|Alter", 112, 24, 378, 78)
GUICtrlCreateListViewItem("Hans|40",$ListView1 )
GUICtrlCreateListViewItem("Tim|20",$ListView1 )
GUICtrlCreateListViewItem("Tom|30",$ListView1 )
$Button1 = GUICtrlCreateButton("Button1", 240, 136, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $B_DESCENDING[_GUICtrlListView_GetColumnCount($listview1)]
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
_GUICtrlListView_SimpleSort($ListView1, $b_DESCENDING, 1)
EndSwitch
WEnd
So wirds nach dem Alter geordnet.
Wenn man den 3. Parameter von Simplesort auf 0 setzt, wird nach Namen geordnet-
Gruß,
Billie