sort the bom