added sort order in tripletList