Parse-SDK-Android icon indicating copy to clipboard operation
Parse-SDK-Android copied to clipboard

Unable to sort by key **

Open Likeyong opened this issue 7 years ago • 0 comments

java.lang.IllegalArgumentException: Unable to sort by key date.

I will get this exception when i findInBackground fromLocalDatastore . if not from local datebase , i will not get it .

this is my code ParseQuery<ParseObject> query = new ParseQuery<>(FILE_IMPORT); query.fromLocalDatastore() .whereNotEqualTo(OPERATION_TYPE, FileImport.OPERATION_DELETE) .orderByDescending(DATE) .setLimit(pageCount) .setSkip((page - 1 < 0 ? 0 : page - 1) * pageCount) .findInBackground(new FindCallback<ParseObject>() { @Override public void done(List<ParseObject> objects, ParseException e) { if (e != null) {

if i invoke fromLocalDatastore() i will get this exception .

but the ""DATE is string

Likeyong avatar Oct 30 '18 11:10 Likeyong