VB Code:
Dim ObjExcel As New Microsoft.Office.Interop.Excel.Application
ObjExcel.Visible = True
ObjExcel.Workbooks.Add()
ObjExcel.Cells(1, 1) = "Column A"
ObjExcel.Cells(2, 1) = "1000"
ObjExcel.Cells(3, 1) = "100"
ObjExcel.Cells(4, 1) = "6000"
ObjExcel.Cells(5, 1) = "20"
ObjExcel.Cells.Range("A1:A5").Sort(Key1:=ObjExcel.Cells.Range("A2"), Order1:=XlSortOrder.xlAscending, Header:=XlYesNoGuess.xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=XlSortOrientation.xlSortColumns, _
DataOption1:=XlSortDataOption.xlSortNormal)
ObjExcel.Cells(1, 2) = "Column B"
ObjExcel.Cells(2, 2) = "10"
ObjExcel.Cells(3, 2) = "200"
ObjExcel.Cells(4, 2) = "5000"
ObjExcel.Cells(5, 2) = "20"
ObjExcel.Cells.Range("B1:B5").Sort(Key1:=ObjExcel.Cells.Range("B2"), Order1:=XlSortOrder.xlAscending, Header:=XlYesNoGuess.xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=XlSortOrientation.xlSortColumns, _
DataOption1:=XlSortDataOption.xlSortNormal)
ObjExcel = Nothing