# Method GTK1.Clist()->set_compare_func()

Method set_compare_func

  ``GTK1.Clist` set_compare_func(`function`(:`void`) `cmpfun`)`

Description

  Set the compare function. The function will be called with a mapping as it's only argument, like this:

         ([
            "clist":the clist widget,
            "sort_column":the column to sort on,
            "row1_data":The user data pointer for the first row,
            "row2_data":The user data pointer for the second row,
            "row1_text":The text in the sort cell in the first row
            "row2_text":The text in the sort cell in the second row
         ])

  The return value is one of: 1: Row 1 is more than row 2 0: The rows are equal -1: Row 1 is lesser than row 2 To remove the comparefunction, use 0 as the argument.