@Override
	public int compareTo(TimeStampedMessage secondMsg) {
		//this message is < secondMsg if every value in this Set is < every value in secondMsg Set
		HashMap<String, TimeStamp> secondMsgTS = secondMsg.getTimeStamp();
		Boolean testing = true;
		for(String name : msg_timestamp.keySet()){
			if(!msg_timestamp.get(name).isEqual(secondMsgTS.get(name))){
				testing=false;
			}
		}
		if(testing)
			return 0;
		//this means they aren't equal, so must be <, >, or = by way of ||
		for(String name : msg_timestamp.keySet()){
			if(!msg_timestamp.get(name).isLesser(secondMsgTS.get(name))){
				testing=false;
			}
		}
		if(testing)
			return -1; //this means that this message is < secondMsg
		testing = true;
		for(String name : msg_timestamp.keySet()){
			if(!msg_timestamp.get(name).isGreater(secondMsgTS.get(name))){
				testing=false;
			}
		}
		if(testing)
			return 1; //this means that this message is > secondMsg
		return 0; //this means that this message is == secondMsg by way of || being assigned ==
	}