sorted test issue