Cargobase Interview Question

How would you solve the problem in python (live code) in sorting random number.