sort use graph