fixed error in sort syntax