The script by default sorts links via the following fields:
1) New
2) isPopular
3) Alphabetical
I would recommend searching this forum for sort or sub build_sorthit and you will find quite a few Threads where other sorting methods have been applied.
Regards,
Eliot Lee