How to retrieve data sorted by createdAt ?

Sorry, you didn’t answer my questions and now I do not know what you have going on. If you run into a problem, please make sure to state the following:

  1. What version of the backend you use
  2. What version of the SDK you downloaded / are using

sorry, I use backend version 4.0.0 and SDK 4.0.0 beta1
Ok. I did that

Thanks, that helps. Yes, you can combine sorting option with whereClause. What you showed in the sample looks correct, however, if the “user_name” column’s type is string, then the “userName” value must be in quotes:
queryBuilder.setWhereClause("user_name = "’+userName + “’” );