fixed isDescending