Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
anshgoyalevil committed Mar 8, 2024
1 parent 8b9f587 commit 47c864e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/newsroom/NewsroomSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import FeaturedBlogPost from './FeaturedBlogPost';
export default function NewsroomSection() {
const { t } = useTranslation('common');

/**
* Retrieves all blog posts and news and sorts them based on their date and featured status.
*/
const posts = getAllPosts()
.blog.sort((i1, i2) => {
const i1Date = new Date(i1.date);
Expand Down

0 comments on commit 47c864e

Please sign in to comment.