To Search any element in an array using Binary search, the array must be sorted. For your convinience we are performing internal sorting of your given input. So, the array you will see in Simulation panel will already be sorted to give you a better experience of Binary search Algorithm.