fix sort