diff --git a/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php b/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php index 0c7cc71..bf4a147 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Repository/Blogs/PostRepository.php @@ -42,6 +42,7 @@ class PostRepository extends EntityRepository ->leftJoin('p.files', 'pf') ->where('p.private = FALSE') ->andWhere('pa.public = TRUE') + ->orderBy('p.createdAt', 'desc') ; } } \ No newline at end of file