Craft 3.3.13
This query does not order users correctly.
{% set users = craft.users.groupId(3).orderBy('lastName asc') %}
Bug?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityCraft 3.3.13
This query does not order users correctly.
{% set users = craft.users.groupId(3).orderBy('lastName asc') %}
Bug?
Just did a simple test on a fresh install of the latest Craft with 3 users in a user group using this code and the output was what I'd expect:
{% set users = craft.users.groupId(1).orderBy('lastName asc') %}
<ul>
{% for user in users %}
<li>{{ user.lastName }}, {{ user.firstName }}</li>
{% endfor %}
</ul>
Gives: