struct EntryNameSort { bool operator()(Entry& Start, Entry& End) { //return rpStart->GetTimestamp() < rpEnd->GetTimestamp(); if(Start.getLast()==End.getLast()) { if(Start.getFirst() < End.getFirst()) { End.emptyLast(); return 1; } else { Start.emptyLast(); return 0; } } else return Start.getLast() < End.getLast(); } };