Custom Sort Wrapper Class - Salesforce Developer Community
文章推薦指數: 80 %
I created a wrapper class that implements the Comparable interface. However, when I sort the list of wrapper, the list is still sorting by ...
LoginwithSalesforce
Don'thaveanaccount?
SignupforaDeveloperEdition
BrowsebyTopic
ApexCodeDevelopment(86622)
GeneralDevelopment(53776)
VisualforceDevelopment(36733)
APIsandIntegration(15806)
Lightning(15647)
Trailhead(11258)
Formulas&ValidationRulesDiscussion(10640)
OtherSalesforceApplications(7731)
JobsBoard(6626)
Force.comSites&Site.com(4714)
Mobile(2608)
JavaDevelopment(3888)
.NETDevelopment(3500)
Security(3170)
Mobile(2608)
VisualWorkflow(2338)
AppExchangeDirectory&Packaging(2325)
Perl,PHP,Python&RubyDevelopment(2012)
ChatterandChatterAPIDevelopment(1702)
SalesforceLabs&OpenSourceProjects(1215)
DesktopIntegration(1140)
Architecture(926)
SchemaDevelopment(912)
Apple,MacandOSX(791)
VBandOfficeDevelopment(633)
EinsteinPlatform(188)
Salesforce$1MillionHackathon(180)
SalesforceSummerofHacks(173)
ViewMoreTopics
SeeAllPosts
Ask
Search:
ResetSearch
WelcometoSupport!
SearchforanansweroraskaquestionofthezoneorCustomerSupport.
Needhelp?
Dismiss
Youneedtosignintodothat
Signintostartsearchingquestions
Don'thaveanaccount?
SignupforaDeveloperEdition
ShowAllQuestionssortedbyDatePosted
ShowAllQuestionsUnansweredQuestionsUnsolvedQuestionsSolvedQuestions
sortedbyDatePostedRecentActivityMostPopular
+StartaDiscussion
Youneedtosignintodothat
Signintostartadiscussion
Don'thaveanaccount?
SignupforaDeveloperEdition
UnsolvedQuestionsThisQuestion
FlintLockwood CustomSortWrapperClassIcreatedawrapperclassthatimplementstheComparableinterface.However,whenIsortthelistofwrapper,thelistisstillsortingbythename
publicwithsharingclassSampleSortimplementsComparable{
privateGoal__cgoalRecord;
publicCaseSLAWrapperClass(Goals__cs){
goalRecord=s;
}
publicIntegercompareTo(ObjectcompareTo)
{
SampleSortcompareToGoal=(SampleSort)compareTo;
if(goalRecord.Display_Order__c
延伸文章資訊
- 1Custom Sort Wrapper Class - Salesforce Developer Community
I created a wrapper class that implements the Comparable interface. However, when I sort the list...
- 2How to sort wrapper class list in Salesforce? - InfallibleTechie
How to sort wrapper class list in Salesforce? Comparable Interface is used to sort wrapper class ...
- 3How to Sort Wrapper class Collection in Apex - Jitendra Zaa
How to Sort Wrapper class Collection in Apex · Comparable Interface: To implement the Comparable ...
- 4Sort Wrapper Class In Apex - SFDC Knowledge Articles
A very interesting requirement i came through today ie to sort a wrapper record list. While explo...
- 5Sort wrapper class list in Apex - SFDC Lessons
Sort wrapper list based on selected records. Visualforce page: My Product Select Name Product Fam...