mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
sort tutorials by name (#16074)
This commit is contained in:
parent
073f375367
commit
16f7ff59c7
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ export class TutorialDirectory extends React.Component {
|
|||
|
||||
async componentWillMount() {
|
||||
const tutorials = await getTutorials();
|
||||
tutorials.sort((a, b) => {
|
||||
return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
|
||||
});
|
||||
this.setState({
|
||||
tutorials: tutorials,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue