- changed status to duplicate
False error on .Sort(new Class extending Comparator<?>) on List
Issue #2427
duplicate
When you try to pass the Comparator argument in the .Sort() function it doesnt recognize its a valid argument and throws a editor highlight saying
“Method does not exist or incorrect signature: sort(Comparator) from the type System.List“
Even when this is completely valid as per https://developer.salesforce.com/docs/atlas.en-us.246.0.apexref.meta/apexref/apex_interface_System_Comparator.htm
Comments (2)
-
repo owner -
repo owner This is a bug in the Salesforce
completions
API that describes the standard Apex types. I’ve already reported it to Salesforce and implemented a workaround for the Winter '24 IC2 release. Merged into#2424. - Log in to comment
Duplicate of
#2424.