We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6f6fc4 commit d2636aeCopy full SHA for d2636ae
src/shell/components/Head/Head.js
@@ -74,9 +74,13 @@ export default connect((state, props) => {
74
</div>
75
76
{props.tags.length ? (
77
- props.tags.map((tag, index) => {
78
- return <HeadTag key={index} tag={tag} dispatch={props.dispatch} />;
79
- })
+ props.tags
+ .sort((a, b) => (a.sort > b.sort ? 1 : -1))
+ .map((tag, index) => {
80
+ return (
81
+ <HeadTag key={index} tag={tag} dispatch={props.dispatch} />
82
+ );
83
+ })
84
) : (
85
<h3 className={cx(styles.headline, styles.NoTags)}>
86
No head tags have been created for this item.
0 commit comments