fix sort constant