add example to sort array