Загрузка...

Apex List Comparator | System.ListException: One or more of the items in this list is not Comparable

Hello Trailblazers, In this video we're going to learn about how we can define a custom comparator for a list of user defined data type in apex. By implementing the comparable interface we'll also learn about the solution to the error: System.ListException: One or more of the items in this list is not Comparable

Chapters:
0:00 Introduction
0:06 Sorting a list of integers
0:43 Sorting a list of employees - System.ListException
2:00 Meaning of System.ListException
2:28 Solution of ListException - Comparable Interface implementation
6:15 Sorting list in descending order of employee ids
7:02 Sorting list by employee names in descending order
8:07 Sorting list by employee names in ascending order
8:52 Wrapping Up

Code: https://gist.github.com/rahulmalhotra/d3d4919c11ff9faf18e79ba703550456

Subscribe to SFDC Stop:- https://www.youtube.com/c/sfdcstop?sub_confirmation=1

LWC Todo App Project Tutorial Series - https://www.youtube.com/playlist?list=PLuL63vr-9xHxru8VhQjYqFEdR_klJeJQb

Interested in learning about Scratch Orgs and SFDX ? Have a look at the playlist:- https://www.youtube.com/playlist?list=PLuL63vr-9xHwW96U64tORGA0HT5j1m0Ff

Interested in learning about Integration ? Have a look at this playlist:- https://www.youtube.com/playlist?list=PLuL63vr-9xHzI83rrXaXHDcsfVqzrp0iO

Видео Apex List Comparator | System.ListException: One or more of the items in this list is not Comparable канала SFDC Stop
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять