I have to sort numbers using only the min() and the max() functions
<p>I have some homework due and I need to sort number using ONLY the min() and max() function and also using it to find the middle numbers. I have a set of 4 integers. How can I use this code and use it to find the middle numbers without using additional methods.</p>

<pre><code>first_integer = input("Please enter the first integer: ")
second_integer = input("Please enter the second integer: ")
third_integer = input("Please enter the third integer: ")
fourth_integer = input("Please enter the fourth integer: ")

integer1 = int(first_integer)
integer2 = int(second_integer)
integer3 = int(third_integer)
integer4 = int(fourth_integer)

integers = (integer1, integer2, integer3, integer4)

min_number = min (integers)
max_number = max (integers)
mid_number_max = min (max(integers),max(integers),max(integers))
mid_number_low = max (min(integers),min(integers),min(integers))
</code></pre>

<p>When I try execute this with numbers 1,2,3,4 
I get </p>

<pre><code>1 1 4 4
</code></pre>

<p>How can I get</p>

<pre><code>1 2 3 4
</code></pre>

<p>A hint is that I have to remove the lowest and highest numbers and find the minimum and maximum for the rest of the numbers.</p>