rename function selectionSorting to selectionSort.

- follows the function naming practices in the folder
- fixes "undefined function selectionSort" in SortingTest.php
- selection sort tests are now passing
This commit is contained in:
Anamarija Papić 2023-10-06 19:28:27 +02:00
parent 4c77cd2ff8
commit 0bfc5b2b75

View File

@ -6,7 +6,7 @@
* @param array $array
* @return array
*/
function selectionSorting(array $array)
function selectionSort(array $array)
{
$length = count($array);