pig script for sorting data by year