fix and test for Sugarjs backwards date range problem
Merge pull request #125 from davidmsibley/WATERSMART-347

fix and test for Sugarjs backwards date range problem