You've seen how to use the sortBy() method to negate a value so that you can sort in descending order. The sortBy() method is also useful when you need to sort by more complex data and sort criteria. Even the sortBy() method has its limitations with respect to sorting lists of maps; so, you have to think about alternative approaches here.