I wouldn't leave `doc.` here, but put it in the `$sort` value.