Parse-SDK-Android
Parse-SDK-Android copied to clipboard
Unable to sort by key **
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