<p>I'm trying to order my users with <code>craft.users.order('lastName')</code>, which should be no problem, since I'm pulling that straight from the documentation; however, it's not working for some reason. Is this a current a bug in Craft?</p>

<p>Currently, I have users with these last names: <code>Apple, Campbell, Jackson</code>.</p>

<p>With <code>order('lastName')</code>, it's printing out: <code>Campbell, Jackson, Apple</code>. So no alphabetical order is being applied <code>asc</code> or <code>desc</code>.</p>

<users><order>
Users Order not Working
# Users Order not Working

(Asked by: username_0 on 2015-10-15)

I'm trying to order my users with `craft.users.order('lastName')`, which should be no problem, since I'm pulling that straight from the documentation; however, it's not working for some reason. Is this a current a bug in Craft?

Currently, I have users with these last names: `Apple, Campbell, Jackson`.

With `order('lastName')`, it's printing out: `Campbell, Jackson, Apple`. So no alphabetical order is being applied `asc` or `desc`.

**Tags:** users, order


---

## 0 answers

