updata genome sorting script