/*!
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2016-2018 European Support Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* permissions and limitations under the License.
*/
import { connect } from 'react-redux';
-
+import sortByStringProperty from 'nfvo-utils/sortByStringProperty.js';
import FeatureGroupsActionHelper from './FeatureGroupsActionHelper.js';
import FeatureGroupEditorView from './FeatureGroupEditorView.jsx';
import ValidationHelper from 'sdc-app/common/helpers/ValidationHelper.js';
+import { SORTING_PROPERTY_NAME } from 'sdc-app/onboarding/licenseModel/LicenseModelConstants.js';
export const mapStateToProps = ({
licenseModel: { featureGroup, entitlementPool, licenseKeyGroup }
data,
previousData,
selectedTab,
- entitlementPoolsList,
- licenseKeyGroupsList,
+ entitlementPoolsList: sortByStringProperty(
+ entitlementPoolsList,
+ SORTING_PROPERTY_NAME
+ ),
+ licenseKeyGroupsList: sortByStringProperty(
+ licenseKeyGroupsList,
+ SORTING_PROPERTY_NAME
+ ),
isFormValid,
formReady,
genericFieldInfo,
/*!
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2016-2018 European Support Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* permissions and limitations under the License.
*/
import { connect } from 'react-redux';
+import sortByStringProperty from 'nfvo-utils/sortByStringProperty.js';
import LicenseAgreementActionHelper from './LicenseAgreementActionHelper.js';
import LicenseAgreementEditorView from './LicenseAgreementEditorView.jsx';
import ValidationHelper from 'sdc-app/common/helpers/ValidationHelper.js';
-
+import { SORTING_PROPERTY_NAME } from 'sdc-app/onboarding/licenseModel/LicenseModelConstants.js';
export const mapStateToProps = ({
licenseModel: { licenseAgreement, featureGroup }
}) => {
data,
previousData,
selectedTab,
- featureGroupsList,
+ featureGroupsList: sortByStringProperty(
+ featureGroupsList,
+ SORTING_PROPERTY_NAME
+ ),
LANames,
genericFieldInfo,
isFormValid,