Skip to main content
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [comparable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

How to sort a custom list of Notes and Attachments by LastModifiedDate

In my VF Page I have been asked to show a list of all the Notes and Attachments in one table, and sorted by the common LastModifiedDate ... So I have a wrapper class in my custom controller: public ...
Our Man in Bananas's user avatar
9 votes
3 answers

Apex equivalent of Java Comparator

I already know about the equivalent of Comparable - the class to be sorted should implement Comparable and then you can sort a List of said class. But, how about Comparator? In java, the Collections....
NickJ's user avatar
  • 680
4 votes
1 answer

Sort List of SObject in Wrapper Class

I have Wrapper class which contains List of Map. After performing some operations that List values order gets changed. public class TeacherAvailabilityWrapper{ public List<Session__c> ...
SFDC shaikh's user avatar
3 votes
1 answer

Notes & Attachments Wrapper class not sorting by LastModifiedDate correctly

I am using the below code with the Comparable interface to build a combined list of all the attachments and notes on a record, sorted in descending order of LastModifiedDate (in constructor of main ...
Our Man in Bananas's user avatar
1 vote
1 answer

Problems implementing comparable class

I am trying to sort list x in descending order by Delta__c. I have been told that I should use a wrapper class and use the implements comparable class. I am getting the error even though Delta__c is ...
Mike's user avatar
  • 113
0 votes
1 answer

How can we sort based on the number of matched filtered

Can someone help us with regards to sort based on the number of matched filtered. We need to prioritized the number of matched filtered on SKILLS rather than (skills + training / skills + ...
lone's user avatar
  • 75