- Post has a property: description
- Comment has a property: message
- One post can contains multiple comments
- Comment is belong to a one Post
- Create 5 posts: descriptions [ First Post, Second Post, Third Post, Fourth Post, Fifth Post ]
- First Post contains no comments
- Second Post contains 3 comments: message can be random texts
- Third Post contains 2 comments: messages [ First Comment, Second Comment ]
- Fourth Post contains no comments
- Fifth Post contains one comment: message can be random text
- List all Posts in the UI
- Comments should appear under each post
- Posts should be ordered based on its Comments count on descending order (most commented post comes first)
- Can be search posts by its description and comment message ( case insensitive )
- List all the Posts which contains the search text in the description or in any of the comment messages
- Should keep the order