Sorts a List using insertion sort algorithm
- Source:
Parameters:
Name | Type | Description |
---|---|---|
list |
List
|
unsorted list |
predicate |
function
|
callback function defining how to compare two elements of the list |