Hi @Pratibha, try using following method to sort your datatable after reading the excel file:
sortedDT = yourdt.AsEnumerable().Orderby(Function(a) a.Field(of string)(“ColumnName”).ToString).CopyToDatatable()
And then use Write Range activity to write into excel file and pass that DataTable.