Python Sort Method Algorithm Example In Java