added sort func to tix