Revert "sorting and testing sorting"

This reverts commit 160e76412d9fa31e54ed23cfb06140e9c037e1e4.
Revert "Revert "sorting and testing sorting""

This reverts commit 56e730890b835fef79905df23f30d84619e92eec.