Sorted Array with inject