Some semplifications ... in sort utils module.