I want to create a list of the following structure:

struct Element() {
int node;
int timestamp;
}

list<Element *> elementList;

Is there a way to use the .sort() function from the list.h class to sort elementList ONLY by the timestamp?? If not, are there any other suggestions for doing this in an easy manner? Thanks in advance for any help!!