add legend on amds sorts (close #54)