Can Sort be added to the List datatype?
system.collections.generic.list.sort
Comments
Agree with Luc de Wit. This would result in cleaner solutions and faster implementations versus iterating through the list and comparing values.
Category: Development
Also it would be great if the method had the option to sort it in both ascending and descending directionsEven better would be if it were able to accept some kind of predicate function so you can have your own rules for sorting the list
Category: Development
Additionally, please implement a second method to add a value only if it does not already exist.
Category: Development
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team