add sort by realm option