fixed bug in tnrs that resulted from attempting to sort on vector of names with duplicates, not sorting anymore, closes #302