fixed sort()