function sortGroupedFlexObjects(mResult) {
		function byCreation(oChangeA, oChangeB) {
			return new Date(oChangeA.creation) - new Date(oChangeB.creation);
		}

		[
			"changes",
			"variantChanges",
			"variants",
			"variantDependentControlChanges",
			"variantManagementChanges"
		].forEach(function (sSectionName) {
			mResult[sSectionName] = mResult[sSectionName].sort(byCreation);
		});
		if (mResult.comp) {
			[
				"changes",
				"defaultVariants",
				"standardVariants"
			].forEach(function (sSectionName) {
				mResult.comp[sSectionName] = mResult.comp[sSectionName].sort(byCreation);
			});
		}

		return mResult;
	}
/**
	 * Sort grouped flexibility objects by their creation timestamp.
	 *
	 * @param {object} [mResult] Grouped flexibility objects
	 * @returns {object} Map of grouped flexibility objects per layer sorted by their creation timestamp
	 */
Sort grouped flexibility objects by their creation timestamp.
@param {object} [mResult] Grouped flexibility objects
@returns {object} Map of grouped flexibility objects per layer sorted by their creation timestamp
Sort grouped flexibility objects by their creation timestamp . @param { object } [ mResult ] Grouped flexibility objects @returns { object } Map of grouped flexibility objects per layer sorted by their creation timestamp
function sortGroupedFlexObjects(mResult) {
		function byCreation(oChangeA, oChangeB) {
			return new Date(oChangeA.creation) - new Date(oChangeB.creation);
		}
		[
			"changes",
			"variantChanges",
			"variants",
			"variantDependentControlChanges",
			"variantManagementChanges"
		].forEach(function (sSectionName) {
			mResult[sSectionName] = mResult[sSectionName].sort(byCreation);
		});
		if (mResult.comp) {
			[
				"changes",
				"defaultVariants",
				"standardVariants"
			].forEach(function (sSectionName) {
				mResult.comp[sSectionName] = mResult.comp[sSectionName].sort(byCreation);
			});
		}
		return mResult;
	}
function sortGroupedFlexObjects ( mResult ) { function byCreation ( oChangeA , oChangeB ) { return new Date ( oChangeA . creation ) - new Date ( oChangeB . creation ) ; } [ "changes" , "variantChanges" , "variants" , "variantDependentControlChanges" , "variantManagementChanges" ] . forEach ( function ( sSectionName ) { mResult [ sSectionName ] = mResult [ sSectionName ] . sort ( byCreation ) ; } ) ; if ( mResult . comp ) { [ "changes" , "defaultVariants" , "standardVariants" ] . forEach ( function ( sSectionName ) { mResult . comp [ sSectionName ] = mResult . comp [ sSectionName ] . sort ( byCreation ) ; } ) ; } return mResult ; }
Sort grouped flexibility objects by their creation timestamp.
Sort grouped flexibility objects by their creation timestamp .