I found a solution to grouping entries by category here which is working perfectly but I need the categories in the order they were arranged in the categories tab in the Admin panel.
Currently, the categories are outputting in the order they were entered but they've been re-ordered since then.
I tried using .fixedOrder(true)
in a few places but nothing good happened. This is the current code:
{% set entries = craft.entries({
section: 'projects'
}).find() %}
{% for category, catEntries in entries|group('projectCategory.first().title') %}
<h4 class="sc">{{ category }}</h4>
<ul class="no-bullet">
{% for entry in catEntries %}
<li><a href="{{ entry.url }}">{{ entry.title }}</a></li>
{% endfor %} {# -- // for entry -- #}
</ul>
{% endfor %}{# -- // for category -- #}