Sorting is done and the blank node problem is solved.