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
.