convert internal data object to Array
@return {Array}
function toArray() {
    return Object
      .keys(data)
      .map(function(name) { return data[name]; })
      .sort(function(a, b) {
        return a.compareTo(b);
      });
  }