add sorting method of list