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
  • 704,970
  • 168
  • 1,303
  • 1,425
Lukas Petersson
  • 159
  • 2
  • 14

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)");
W0rmH0le
  • 17,489
  • 8
  • 58
  • 72