0

I am trying to query information with a CursorLoader from my SQL database. How do I make the order case insensitive?

return new CursorLoader(this, CONTENT_URI, projection, null, null, orderBy);
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Lukas Petersson
  • 197
  • 2
  • 18

1 Answers1

1

I'm using this question/answers as source:

While ordering, you can "convert" the data to lower/upper case. Data retrieved won't be affected since you are changing the ORDER BY statement.

return new CursorLoader(this, CONTENT_URI, projection, null, null, "UPPER(COLUMN_NAME)");
guipivoto
  • 18,327
  • 9
  • 60
  • 75