sort ayas for each header by its score