Priorities datatable

I have to check if same year appears more than one time in datatable.if same year occurs I have to check the method row if one row contains draft and another one completed.I have to move draft in first place and completed in second placedata-WPS Office.xls (11 KB) .in this excel I have 2019 two times so iam checking method row .here completed is first and draft is second ,so ihave to move draft column first and completed column second.