As a non-db-workaround, you can use
List l = realm.where(MyEntry.class)
.findAllSorted("name");
int pos = l.indexOf(entryWithName);
MyEntry next = l.get((pos+1)%l.size());
This does the searching outside of the db. Possibly not as well-performing, and not as readable, but it should work.