code: function(annotationModel, start, end) {
  			var iter = annotationModel.getAnnotations(start, end);
  			var annotation, annotations = [];
  			while (iter.hasNext()) {
  				annotation = iter.next();
  				if (!this.isAnnotationTypeVisible(annotation.type)) { continue; }
  				annotations.push(annotation);
  			}
  			var self = this;
  			annotations.sort(function(a, b) {
  				return self.getAnnotationTypePriority(a.type) - self.getAnnotationTypePriority(b.type);
  			});
  			return annotations;
  		}
docs: Returns an array of annotations in the specified annotation model for the given range of text sorted by type.
  
  @param {orion.editor.AnnotationModel} annotationModel the annotation model.
  @param {Number} start the start offset of the range.
  @param {Number} end the end offset of the range.
  @return {orion.editor.Annotation[]} an annotation array.