The minimal number of layers of a perceptron that sorts