always sort by _id as well to avoid ambiguous positions