Support sorted-sets

Hi, this fixes #27.  I've added one test to verify the fix (outlined in the issue).  It still passes all the other tests in test-parser.