def _IndexEntry(build_id, timestamp):
  """Creates a build index entry from an id and timestamp."""
  sort_key = (timestamp,) + tuple(int(i) for i in build_id.split('.'))
  return build_id, timestamp, sort_key