removing unneeded input annotation sorting as doc.get() already sorts
the annotations