dist/assets/js/plugins/storeLocator/jquery.storelocator.js
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();
				});
			}
		}
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();
				});
			}
		}
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 ( ) ; } ) ; } }
Location date sorting function

@param locationsarray {array} locationset array
Location date sorting function