I have a requirement, where I have to sort a SObject list by one field.

```
List<Account> initAccountList;

Private void loadPricingMap () {

    if(initAccountList== null) {
       initAccountList= [select Id,
                                End_Date__c,
                                Product__c,
                                Effective_Date__c
                                from Account
                                order by Effective_Date__c];
        }
        else if(!initAccountList.isEmpty()) {
            // TO DO : Use SObjectComparable to sort initAccountListby effective date
        }

}

```