public int compareTo(QualityQuery other) {try {int n = Integer.parseInt(queryID);int nOther = Integer.parseInt(other.queryID);return n - nOther;} catch (NumberFormatException e) {return queryID.compareTo(other.queryID);}}

public virtual int CompareTo(QualityQuery other){try{int n = int.Parse(queryID, CultureInfo.InvariantCulture);int nOther = int.Parse(other.queryID, CultureInfo.InvariantCulture);return n - nOther;}catch (FormatException ){return queryID.CompareToOrdinal(other.queryID);}}
