committed work so far on sorting