fixed sort syntax