Need to clean up the code to remove multiple sorting that happens on sequence ids
Need to clean up the code to remove multiple sorting that happens on sequence ids