Selection Sort

Sort an array using the selection sort algorithm by repeatedly finding the minimum element.

Code

Algorithms
echo "$arr" | jq 'sort'

Parameters

Array to sort (JSON)

Server

More Bash Snippets