2nd function has been done

The sort function has been implemented using bubble sort