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