code: function(locationsarray) {
  			this.writeDebug('sortDate',arguments);
  			var property = (this.settings.sortBy.hasOwnProperty('prop') && typeof this.settings.sortBy.prop !== 'undefined') ?  this.settings.sortBy.prop : 'date';
  
  			if (this.settings.sortBy.hasOwnProperty('order') && this.settings.sortBy.order.toString() === 'desc') {
  				locationsarray.sort(function (a, b) {
  					return new Date(b[property]).getTime() - new Date(a[property]).getTime();
  				});
  			} else {
  				locationsarray.sort(function (a, b) {
  					return new Date(a[property]).getTime() - new Date(b[property]).getTime();
  				});
  			}
  		}
docs: Location date sorting function
  
  @param locationsarray {array} locationset array