code: public int compareTo(LogPosition o) {
          final int val = fileName.compareTo(o.fileName);
  
          if (val == 0) {
              return (int) (position - o.position);
          }
          return val;
      }
docs: {@inheritDoc}
  
  @see java.lang.Comparable#compareTo(java.lang.Object)