function sortItems(itemsArr, orderBy) {
	return itemsArr.sort((item1, item2) => {
		if (item1[orderBy] < item2[orderBy]) return -1;
		return 1;
	})
}
/**
 * Orders an array of objects according to the specified parameter
 * @function sortItems
 * @param {Array<Object>} itemsArr The array of items to sort
 * @param {string} orderBy Parameter to sort the array by
 * @returns {Array<Object>} Array with its items sorted
 */
Orders an array of objects according to the specified parameter
@function sortItems
@param {Array} itemsArr The array of items to sort
@param {string} orderBy Parameter to sort the array by
@returns {Array} Array with its items sorted
Orders an array of objects according to the specified parameter @function sortItems @param { Array } itemsArr The array of items to sort @param { string } orderBy Parameter to sort the array by @returns { Array } Array with its items sorted
function sortItems(itemsArr, orderBy) {
	return itemsArr.sort((item1, item2) => {
		if (item1[orderBy] < item2[orderBy]) return -1;
		return 1;
	})
}
function sortItems ( itemsArr , orderBy ) { return itemsArr . sort ( ( item1 , item2 ) => { if ( item1 [ orderBy ] < item2 [ orderBy ] ) return - 1 ; return 1 ; } ) }
Orders an array of objects according to the specified parameter
 @function sortItems
 @param {Array<Object>} itemsArr The array of items to sort
 @param {string} orderBy Parameter to sort the array by
 @returns {Array<Object>} Array with its items sorted
Orders an array of objects according to the specified parameter @function sortItems @param { Array<Object > } itemsArr The array of items to sort @param { string } orderBy Parameter to sort the array by @returns { Array<Object > } Array with its items sorted