diff --git a/docs/Aggregation/TopHits.md b/docs/Aggregation/TopHits.md
index 9f446864527334c715957a7b1225d81f633ff245..e9e040ca4f2164136de10bf9bf23aedbfe45fa4d 100644
--- a/docs/Aggregation/TopHits.md
+++ b/docs/Aggregation/TopHits.md
@@ -43,7 +43,7 @@ so that the top matching documents can be aggregated per bucket.
 And now the query via DSL:
 
 ```php
-$sort = new FieldSort('last_activity_date', Sort::DESC);
+$sort = new FieldSort('last_activity_date', FieldSort::DESC);
 $sorts = new Sorts();
 $sorts->addSort($sort);
 $topHitsAggregation = new TopHitsAggregation('top_tag_hits', 1, null, $sorts);