title: How to sort numbers
body: <p>I need some help to be able to handle the following logic. The program gets many integers input like <code>10,16,3,17,21,29,6</code>.</p>
  
  <p>Logic to be done:</p>
  
  <p>Scenario 1:</p>
  
  <p>First select the biggest 4 numbers of input which is <code>16,17,21,29</code>. Now assign the values to A,B,C and D:</p>
  
  <ul>
  <li>A = smallest in the selected 4</li>
  <li>B = biggest in the selected 4</li>
  <li>C =
  second smallest in the selected 4</li>
  <li>D = third smallest in the selected
  4</li>
  </ul>
  
  <p>Result to be Displayed:</p>
  
  <pre><code>A = 16
  B = 29
  C = 17
  D = 21
  </code></pre>
  
  <p>Scenario: 2</p>
  
  <p>If the user gives 3 inputs like <code>3,6,10</code> assign only to A,B,C and should ignore D</p>
  
  <p>Result to be Displayed:</p>
  
  <pre><code>A = 3
  B = 10
  C = 6
  </code></pre>