How do I sort out some data according to an where clause and a order by clause using object query language this is the query that I'm using but i'm not sure if it is working or not.
SELECT user from user.User as user WHERE user.status=1 order by user.username
Thanks.