list_sort()

function to sort the list is done.
All changes in this commit is related.