1) I applied the sorting to arraycollection :
var sf:SortField = new SortField();
sf.name = “CaseID”;
var srt:Sort = new Sort()
srt.fields = [sf];
cases.sort = srt; // cases is arraycollection and storing values //from backend service
But it cause the execption stating “Find criteria must contain at least one sort field value”, on checking the dataprovider we found that field ‘CaseID’ was not present in data but ‘CaseId’ and because of that it was causing the exception.
So make sure that the sortfield should present in the data.