Fixed a bug causing a crash if no sort descriptors were supplied