If you have sold your Guardian Sword and want it again, first make sure you are a verified Guardian. Once that is sorted, head to Willowshire and make your way to the tower, where you need to collect all the keys (the gems). After that, you will encounter a ghostly Guardian—select "shop," and you will be able to reclaim the Guardian Sword there.