more cleanup for bitmap sorting method