store keywords in sorted order