You need to sign in to do that
Don't have an account?
Simrin
Order by for list.addAll(list)
Hello,
I have a list like below which should be orderBy UserId but it is not as
I have a list like below which should be orderBy UserId but it is not as
public List<ProfileSkillUser> tempResult{get;set;} public List<ProfileSkillUser> searchResult{get;set;} fucntion{ for (5 times){ tempResult = [SELECT UserId, Name FROM ProfileSkillUser ORDER BY UserId]; searchResult.addAll(tempResult); } }But the searchResult is not order by list, how can i achive it
Best Answer chosen by Simrin
kevin lam