Throwing error if no sort exists when checking subsorts.