Answers.Body: <p>Answer update for Craft 3, and also adding in a secondary orderBy so that remaining entries are still ordered by date:</p>
  <pre><code>{% set entries = craft.entries.section('news').orderBy('myLightswitch desc, postDate desc').all() %}
  </code></pre>
  <p>Without the secondary orderBy, I have no idea what it's using for the remainder sort order but it's not postDate in my testing at least!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-30T12:17:26.790Z
Answers.LastActivityDate: 2021-03-30T12:17:26.790Z
Answers.UserDisplayName: James Smith
Answers.Body: <p>You could add a custom lightswitch field or similar and order your entries by that field.</p>
  
  <pre><code>{% set entries = craft.entries.section('news').order('myLightswitch desc') %}
  </code></pre>
  
  <p>If you need additional sort options, @Brad <a href="https://craftcms.stackexchange.com/q/2146/125">just shared</a> how to do that with SQL in the <code>order()</code> parameter.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-25T19:43:13.037Z
Answers.LastActivityDate: 2014-08-25T19:43:13.037Z
Answers.LastEditDate: 2017-04-13T12:51:00.253Z
Answers.UserDisplayName: carlcs
Body: <p>How would I make a post(s) sticky so that it appears first in the results and does not repeat later in the results?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-26T08:07:41.617Z
Comments.Text: FYI, your three comments are really all extensions of your original question. I'd recommend editing your question to include the entire train of thought... otherwise, you're really only having a conversation with yourself.
Comments.UserDisplayName: Lindsey D
Tags: <entries>
Title: Is there a "sticky post" function built into Craft?
ThreadText: # Is there a "sticky post" function built into Craft?
  
  (Asked by: username_0 on 2014-08-25)
  
  How would I make a post(s) sticky so that it appears first in the results and does not repeat later in the results?
  
  **Tags:** entries
  
  > **Comments:**
  > **username_1**: FYI, your three comments are really all extensions of your original question. I'd recommend editing your question to include the entire train of thought... otherwise, you're really only having a conversation with yourself.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2014-08-25. Score: 11 | Accepted answer
  
  You could add a custom lightswitch field or similar and order your entries by that field.
  
  ```
  {% set entries = craft.entries.section('news').order('myLightswitch desc') %}
  
  ```
  
  If you need additional sort options, @Brad [just shared](https://craftcms.stackexchange.com/q/2146/125) how to do that with SQL in the `order()` parameter.
  
  
  ---
  
  ### Answer by username_2 on 2021-03-30. Score: 3
  
  Answer update for Craft 3, and also adding in a secondary orderBy so that remaining entries are still ordered by date:
  
  ```
  {% set entries = craft.entries.section('news').orderBy('myLightswitch desc, postDate desc').all() %}
  
  ```
  
  Without the secondary orderBy, I have no idea what it's using for the remainder sort order but it's not postDate in my testing at least!
  
  
  ---
  
  