code: @SuppressWarnings({ "rawtypes", "unchecked" })
    public int compareTo(MtasDataItem<Double, Double> o) {
      int compare = 0;
      if (o instanceof MtasDataItemDoubleFull) {
        MtasDataItemDoubleFull to = (MtasDataItemDoubleFull) o;
        MtasDataItemNumberComparator c1 = getComparableValue();
        MtasDataItemNumberComparator c2 = to.getComparableValue();
        compare = (c1 != null && c2 != null) ? c1.compareTo(c2.getValue()) : 0;
      }
      return sortDirection.equals(CodecUtil.SORT_DESC) ? -1 * compare : compare;
    }
docs: /*
  (non-Javadoc)
  
  @see java.lang.Comparable#compareTo(java.lang.Object)