fixed apidoc link parsing
improved APIdocs template by sorting all items