Add rank option for sorting
Convert Date, DateTime, and Time to timestamps

Allows such fields to be ranked/sorted
Use consistent hash syntax
Remove debug puts