add a test for 2.2+ multi sort
fix issue with sorting 2.2+ multi-sort
Merge pull request #815 from dimagi/fix-date-sort

Fix date sort