you are given different products in a shop, write a program to ensure that the products in the shop are always sorted by barcode