<p>Let's say you have a blog and have posts ordered by their published date. Later you decide you want to pin certain posts.
</p><p>Pinned posts should be displayed before any other posts regardless of their published date.
</p><p>The Solution
</p><p>You can accomplish this by modifying the order clause in the query.</p><p>&nbsp;Nulla nunc mi, pharetra sed dolor eu, porta finibus neque. Maecenas hendrerit pulvinar nisl, nec volutpat augue mollis sit amet. Nunc vestibulum, mi sit amet tincidunt mollis, tortor urna dignissim felis, fermentum mollis libero sapien eget odio. Donec nec libero in nibh mattis elementum.</p><p><br></p><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1675040624670/36f72eb8-ccb2-4d56-bccb-43ce7925cc04.png" alt="Pinned Posts"><br></p><p>
</p><p>
</p>