Sort An Array In Java Without Using Sort Function