Added the sort-data function
data is able to be added