Sort Array Without Using Inbuilt Method In Python