fix sort command