Implemented shop.list sorting function.