Implemented sorting functionality in autolist engine, need to generate the links in headers