It's All Writing.

Writing makes you happy.

Entries from 2020-05-17 to 1 day

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 …