It's All Writing.

Writing makes you happy.

sort by multiple fields

How to sort Objects by multiple fields at Apex

Environment Apex Premise You can sort List of Objects with using sort method as below. In above example, shops is sorted by name ascending order ( Shop A, Shop B, Shop C). But what if you want to sort by multiple fields in …