Ajouter aux favorisYadhu Krishnan (Inno Valley Works) a publié du contenu dans Bangalore Developer User Group (Question initialement posée par Yadhu Krishnan)21 déc. 2023, 13:47Yadhu KrishnanDoes anyone know what sorting algorithm does the Comparator Interface use?We can implement different sort orders with the Comparator interface’s compare() method, and pass the Comparator as a parameter to List.sort(). Does anyone know what sorting algorithm the Comparator Interface uses or will we be able to implement any of the sorting algorithms as per our need?Since it looks like it is using the bubble sort from the example given here:https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_System_Comparator.htm#apex_interface_System_Comparator_ExampleAfficher plusAjouter un commentaireRédiger un commentaire...GrasItaliqueSoulignerBarréListe à pucesListe numérotéeAjouter un lienBloc de codeInsérer une imageJoindre des fichiersURL du lienAnnulerEnregistrer0/9000Répondre
Yadhu KrishnanDoes anyone know what sorting algorithm does the Comparator Interface use?We can implement different sort orders with the Comparator interface’s compare() method, and pass the Comparator as a parameter to List.sort(). Does anyone know what sorting algorithm the Comparator Interface uses or will we be able to implement any of the sorting algorithms as per our need?Since it looks like it is using the bubble sort from the example given here:https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_System_Comparator.htm#apex_interface_System_Comparator_ExampleAfficher plus