sorter improved, stilll buggy