How can I ensure certain items always display at the end of a list? I have a website where I want to show Power Coat (-PC) options at the end of a list. The data goes into Craft in an unpredictable order, from a third-party service, so I am responsible for organizing it in the front-end.
Is there a way I can split out or force the -PC items to always appear at the end of the list, in my template?
How would you like to identify that particular entry? If you're happy to hardcode its id, then I'd do it like this with the filter filter and the without filter:
{% set allEntries = craft.entries.section('products').all() %}
{% set pcEntry = allEntries|filter(item =&gt; item.id = 1234) %}
{% set entriesWithoutPC = allEntries|without(pcEntry) %}

You can now output those however/wherever you like, e.g.
&lt;ul&gt;
  {% for product in entriesWithoutPC %}
    &lt;li&gt;{{ product.title }}&lt;/li&gt;
  {% endfor %}
  &lt;li&gt;{{ pcEntry[0].title }}&lt;/li&gt;
&lt;/ul&gt;