code: function(type) {
  			if (this._annotationTypes) {
  				for (var i = 0; i < this._annotationTypes.length; i++) {
  					if (this._annotationTypes[i] === type) {
  						return i + 1;
  					}
  				}
  			}
  			return 0;
  		}
docs: Gets the annotation type priority.  The priority is determined by the
  order the annotation type is added to the receiver.  Annotation types
  added first have higher priority.
  <p>
  Returns <code>0</code> if the annotation type is not added.
  </p>
  
  @param {Object} type the annotation type
  
  @see orion.editor.AnnotationTypeList#addAnnotationType
  @see orion.editor.AnnotationTypeList#removeAnnotationType
  @see orion.editor.AnnotationTypeList#isAnnotationTypeVisible