dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function(locationsarray) {
			this.writeDebug('sortAlpha',arguments);
			var property = (this.settings.sortBy.hasOwnProperty('prop') && typeof this.settings.sortBy.prop !== 'undefined') ?  this.settings.sortBy.prop : 'name';

			if (this.settings.sortBy.hasOwnProperty('order') && this.settings.sortBy.order.toString() === 'desc') {
				locationsarray.sort(function (a, b) {
					return b[property].toLowerCase().localeCompare(a[property].toLowerCase());
				});
			} else {
				locationsarray.sort(function (a, b) {
					return a[property].toLowerCase().localeCompare(b[property].toLowerCase());
				});
			}
		}
function(locationsarray) {
			this.writeDebug('sortAlpha',arguments);
			var property = (this.settings.sortBy.hasOwnProperty('prop') && typeof this.settings.sortBy.prop !== 'undefined') ?  this.settings.sortBy.prop : 'name';

			if (this.settings.sortBy.hasOwnProperty('order') && this.settings.sortBy.order.toString() === 'desc') {
				locationsarray.sort(function (a, b) {
					return b[property].toLowerCase().localeCompare(a[property].toLowerCase());
				});
			} else {
				locationsarray.sort(function (a, b) {
					return a[property].toLowerCase().localeCompare(b[property].toLowerCase());
				});
			}
		}
function ( locationsarray ) { this . writeDebug ( 'sortAlpha' , arguments ) ; var property = ( this . settings . sortBy . hasOwnProperty ( 'prop' ) && typeof this . settings . sortBy . prop !== 'undefined' ) ? this . settings . sortBy . prop : 'name' ; if ( this . settings . sortBy . hasOwnProperty ( 'order' ) && this . settings . sortBy . order . toString ( ) === 'desc' ) { locationsarray . sort ( function ( a , b ) { return b [ property ] . toLowerCase ( ) . localeCompare ( a [ property ] . toLowerCase ( ) ) ; } ) ; } else { locationsarray . sort ( function ( a , b ) { return a [ property ] . toLowerCase ( ) . localeCompare ( b [ property ] . toLowerCase ( ) ) ; } ) ; } }
Location alphabetical sorting function

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