File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
javascript/grid-ui/src/screens/Overview Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import Loading from '../../components/Loading/Loading'
36
36
import Error from '../../components/Error/Error'
37
37
import StereotypeInfo from '../../models/stereotype-info'
38
38
import browserVersion from '../../util/browser-version'
39
- import Capabilities from " ../../models/capabilities" ;
39
+ import Capabilities from ' ../../models/capabilities'
40
40
41
41
const useStyles = ( theme : Theme ) : StyleRules => createStyles (
42
42
{
@@ -129,12 +129,12 @@ class Overview extends React.Component<OverviewProps, OverviewState> {
129
129
const message = 'There has been an error while loading the Nodes from the Grid.'
130
130
return (
131
131
< Grid container spacing = { 3 } >
132
- < Error message = { message } errorMessage = { error } />
132
+ < Error message = { message } errorMessage = { error } />
133
133
</ Grid >
134
134
)
135
135
}
136
136
137
- const nodes = data . nodesInfo . nodes . map ( ( node ) => {
137
+ const unSortedNodes = data . nodesInfo . nodes . map ( ( node ) => {
138
138
const osInfo : OsInfo = {
139
139
name : node . osInfo . name ,
140
140
version : node . osInfo . version ,
@@ -170,6 +170,7 @@ class Overview extends React.Component<OverviewProps, OverviewState> {
170
170
return newNode
171
171
} )
172
172
173
+ const nodes = unSortedNodes . sort ( ( a , b ) => ( a . id < b . id ? - 1 : 1 ) )
173
174
if ( nodes . length === 0 ) {
174
175
const shortMessage = 'The Grid has no registered Nodes yet.'
175
176
return (
You can’t perform that action at this time.
0 commit comments