Provide C implementation of tree item sorter.