Fix sort. Fix issues
tex files