correct sorting of annotations