removed duplicate sort