win32gui.ListView_SortItemsEx

ListView_SortItemsEx(hwnd, callback, param)

Uses an application-defined comparison function to sort the items of a list view control.

Parameters

hwnd : int

The handle to the window

callback : object

A callback object, taking 3 params.

param=None : object

The third param to the callback function.