sort blasts based on some criteria