ListView compare func

  c++, winapi, wtl

I implement simple file viewer in folder that entered by user.
There few columns: FileName/FileExtention/Full file path.
And on column click there should be sorting my items.

The main problem is that i dont understand how compare function should be implemented.

I am using CListViewCtrl in my file viewer.

Source: Windows Questions C++