title: Python - sorted list
body: <p>If I got this line of code: </p>
  
  <pre><code>my_list = [3,4,7,2,1,6,8,2,1,4]
  </code></pre>
  
  <p>I can sort this list with:</p>
  
  <pre><code>my_list.sort()
  </code></pre>
  
  <p>But if I want to create a product list, For example: 2 milks, 3 cookies and so on, if I will sort this list [3,2] I will not be able to know how many milk should I buy or cookies. My question is how can I use dictionary or list so I would be able to sort the list/dictionary and also know the product name after the sort.</p>