Fix sort syntax