sort internal annotations when getAnnotations