Change from using vanilla dicts to using ordereddicts and remove the sorted() call so that the user can sort the links as they'd like