Skip to content

Commit

Permalink
tweak(xod-client): make library sorting in project browser more intui…
Browse files Browse the repository at this point in the history
…tive

Closes #1318
  • Loading branch information
evgenykochetkov committed Jul 6, 2018
1 parent 447756f commit 950d9fd
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,14 @@ class ProjectBrowser extends React.Component {

return R.compose(
R.map(R.prop('component')),
R.sortBy(R.prop('name')),
R.sortBy(
R.compose(
// so that "foo/something" comes before "foo-bar/something",
// like in proper file managers
R.replace('/', '*'),
R.prop('name')
)
),
R.concat
)(libComponents, installingLibsComponents);
}
Expand Down

0 comments on commit 950d9fd

Please sign in to comment.