Sort function updated.