almost working sort-insert