fix #10: simplify sortVocab impl