From 62d0094542ca7715b502fdaa8d9e2f97aede8a0d Mon Sep 17 00:00:00 2001
From: Tri Tran <tri.tran@8bitrockr.com>
Date: Sat, 5 Dec 2015 21:56:53 +0700
Subject: [PATCH] Edited | Updated the documentation

---
 docs/Aggregation/TopHits.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/Aggregation/TopHits.md b/docs/Aggregation/TopHits.md
index 9f44686..e9e040c 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);
-- 
GitLab