Abstract
The functioning of a sorting network based on self-learning and self-setting of a ranks vector is considered. Sorting method by paired exchange is used with inserting of ranks vector as the elements weights vector of the input array, which allows considering an offered sorting network as a sorting neural network model.