Android realm sorting list of objects

You're basically trying to sort a realmList depending on multiple parameters. Here's the way to go:

String[] fields = {"name","fromDate","currentDate","toDate"};
Sort[] howToSort = {Sort.ASCENDING, Sort.ASCENDING, Sort.ASCENDING, Sort.ASCENDING};

And then, you simply do a usual realm selection:

realm.where(YourRealmObject.class).findAllSorted(fileds, howToSort);

As @EpicPandaForce commented, please check the docs.