Order by Numeric Custom Field Value I'm trying to order my entries by a numeric custom field named score, some of these values can be 0 but unfortunately, it's not getting ordered at all?

{% set users = craft.users.group('influencer').order('score').limit(24) %}

{% if users|length %}
    {% paginate users as pageInfo, pageEntries %}
    {% for user in pageEntries %}


/* New Code */

  {% set users = craft.users.group('influencer').orderBy('score desc').limit(24) %}

          {% if users|length %}

          {% paginate users as pageInfo, pageEntries %}
          {% for user in pageEntries %}
Assuming this is in Craft 3, you should be using .orderBy() instead of .order(). Does the following work as expected?

{% set users = craft.users.group('influencer').orderBy('score desc').limit(24) %}

{% paginate users as pageInfo, pageUsers %}

{% for user in pageUsers %}
    {{ user.username }} : {{ user.score }} &lt;br&gt;
{% endfor %}


Here it is in the docs: https://docs.craftcms.com/v3/dev/element-queries/user-queries.html#orderby

Also turn on devMode to be sure that no errors are being suppressed.