code: function (locationsarray) {
  			this.writeDebug('sortNumerically',arguments);
  			var property = (
  				this.settings.sortBy !== null &&
  				this.settings.sortBy.hasOwnProperty('prop') &&
  				typeof this.settings.sortBy.prop !== 'undefined'
  			) ?  this.settings.sortBy.prop : 'distance';
  
  			if (this.settings.sortBy !== null && this.settings.sortBy.hasOwnProperty('order') && this.settings.sortBy.order.toString() === 'desc') {
  				locationsarray.sort(function (a, b) {
  					return ((b[property] < a[property]) ? -1 : ((b[property] > a[property]) ? 1 : 0));
  				});
  			} else {
  				locationsarray.sort(function (a, b) {
  					return ((a[property] < b[property]) ? -1 : ((a[property] > b[property]) ? 1 : 0));
  				});
  			}
  		}
docs: Location distance sorting function
  
  @param locationsarray {array} locationset array