Include "doc." in $sort parameter