move bubble sort to DIR sort