All pastes #806198 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-05 01:00 UTC
rendered paste body
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();
	}
};