fixed sorting index terms in pdf