A logarithmic time sort for linear size networks