update bsort1 and bsort2 to be clearer