sort function on the csv output

adding the sort by sub product type in the csv list.