お気に入りYadhu Krishnan (Inno Valley Works) が「Bangalore Developer User Group」で投稿 (元の質問者: Yadhu Krishnan)2023年12月21日 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_Example表示件数を増やすコメントを追加コメントを記入...太字斜体下線取り消し線箇条書き番号付きリストリンクを追加コードブロック画像を挿入ファイルを添付リンク URLキャンセル保存0/9000返信
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_Example表示件数を増やす