@Override
	public int compareTo(CopperElementReference o)
	{
		if(grammarName == null && o.grammarName != null) return -1;
		if(grammarName != null && o.grammarName == null) return 1;
		if(grammarName != null && o.grammarName != null)
		{
			int gC = grammarName.compareTo(o.grammarName);
			if(gC != 0) return gC;
		}
		return name.compareTo(o.name);
	}