Leave a specific row on top of sorted results

How do I leave a specific row on top of sorted results I’m displaying news stories and I want the top story to stay on top for as long as it’s the top story

How do I leave a specific row on top of sorted results I'm displaying news stories and I want the top story to stay on top for as long as it's the top story

I can't understand how you have to keep asking such basic questions. Isn't it obvious? Mark it in some way then do a sort on the two fields (top or not, and date or whatever else you are sorting by) so that it sorts by date within the topiness value. Alternatively just remove it from the set to be sorted before you sort them.

Colin

Sorry you’re right Of course I know how to do it I wanted to know if there was a commonly used helper method that I didn’t know about I decided it wasn’t a good idea anyway and made a special section for top story because otherwise people will assume it’s still the most recent story and disregard the following stories every time they revisit the page