remove command "echo" from improved cocktail sort on PHP [list-sort]