Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 0c5eeda

Browse files
darkwingjasonLaster
authored andcommitted
Sort breakpoints by file name (#5855)
1 parent acef4a1 commit 0c5eeda

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/components/SecondaryPanes/Breakpoints.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,16 @@ class Breakpoints extends Component<Props> {
167167
);
168168

169169
return [
170-
...Object.keys(groupedBreakpoints).map(filename => {
171-
return [
172-
<div className="breakpoint-heading" title={filename} key={filename}>
173-
{filename}
174-
</div>,
175-
...groupedBreakpoints[filename].map(bp => this.renderBreakpoint(bp))
176-
];
177-
})
170+
...Object.keys(groupedBreakpoints)
171+
.sort()
172+
.map(filename => {
173+
return [
174+
<div className="breakpoint-heading" title={filename} key={filename}>
175+
{filename}
176+
</div>,
177+
...groupedBreakpoints[filename].map(bp => this.renderBreakpoint(bp))
178+
];
179+
})
178180
];
179181
}
180182

0 commit comments

Comments
 (0)