Sort An Array In Java Without Using Sort In Python 3