changed sort
fixed sort()
verified sort() method