To sort your items, implement CompareWith. This function has a parameter to indicates on which column the sort is being done. This parameter corresponds to the parameter used in the functions GetColumnTitle and GetItemDetail.