find the finest toc ticks by sorting out the largest one
Merge pull request #1203 from chrox/fix_1202

find the finest toc ticks by sorting out the largest one