ycpdoc - improved generating index file

the same functions are additionaly sorted by source file to avoid random
order in the output (fixes testsuite failure after upgrading to perl-5.18)

- 2.24.1