sorting work in progress