I have a Gtk TreeView named phoneBookTreeView

Gtk::TreeView * phoneBookTreeView;

can someone help me how to sort all the contacts inside the TreeView?

if I have a code like this for sorting the contacts byname:

void PhoneBookModel::sortByName( Glib::RefPtr<Gtk::TreeSelection> selection ){
/* Enter SortByName Function here */
}

what would be the function on it?? The PhoneBookModel is a Gtk::TreeStore.

help! help! help! thanks!

void PhoneBookModel::sortByName( Glib::RefPtr<Gtk::TreeSelection> selection ){
/* Enter SortByName Function here */
}

>Enter SortByName Function here
I hope this wasn't a request to do your homework, you'll never get free code here, you've to get your grade by turning in your code, not by turning in the code we wrote for you :( ...

how about this error? please help me on this: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/list.tcc:287: error: conversion from ‘MRef<ContactEntry*>’ to non-scalar type ‘std::string’ requested
thanks!

I can't see your screen from here, so post some code to illustrate the problem. (line 287 for example)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.