if(nsarray != null)
nsmutablearray = new NSMutableArray(nsarray);
else
nsmutablearray = new NSMutableArray();
EOSortOrdering eosortordering = EOSortOrdering.sortOrderingWithKey(s, nsselector);
nsmutablearray.insertObjectAtIndex(eosortordering, 0);
if(nsmutablearray.count() > 3)
nsmutablearray.removeLastObject();
wodisplaygroup.setSortOrderings(nsmutablearray);
}