Hi there, I have a question about how to sort rows in a text file.
I have a text file which involves a dataset as below.
FileName SDFd_A1_A-1.txt 1.1d_A1_A-10.txt 1.2d_A1_A-11.txt 1.3d_A1_A-12.txt 1.4d_A1_A-13.txt 1.5d_A1_A-14.txt 1.6d_A1_A-15.txt 1.7d_A1_A-16.txt 1.8d_A1_A-17.txt 1.9d_A1_A-18.txt 2.0d_A1_A-19.txt 2.1d_A1_A-2.txt 2.2d_A1_A-20.txt 2.3
I imported this text file as a dataset using a code below.
A = dataset('File','SD_Force_Engram.txt')
I would like to ask you how I could order rows in number. Here is the dataset that I would like to ideally have below.
FileName SDFd_A1_A-1.txt 1.1d_A1_A-2.txt 2.2d_A1_A-10.txt 1.2d_A1_A-11.txt 1.3d_A1_A-12.txt 1.4d_A1_A-13.txt 1.5d_A1_A-14.txt 1.6d_A1_A-15.txt 1.7d_A1_A-16.txt 1.8d_A1_A-17.txt 1.9d_A1_A-18.txt 2.0d_A1_A-19.txt 2.1d_A1_A-20.txt 2.3
I would appreciate your response.
Best Answer