fix(schemaExplorer): sort measurements
parent
67f0eec3fe
commit
02875f6810
|
@ -65,6 +65,7 @@ class MeasurementsList extends PureComponent<Props, State> {
|
||||||
const {source, db, notify, loading} = this.props
|
const {source, db, notify, loading} = this.props
|
||||||
const {searchTerm} = this.state
|
const {searchTerm} = this.state
|
||||||
const measurementEntries = Object.entries(this.props.measurements)
|
const measurementEntries = Object.entries(this.props.measurements)
|
||||||
|
measurementEntries.sort((a, b) => a[0].localeCompare(b[0]))
|
||||||
|
|
||||||
if (loading === RemoteDataState.Error) {
|
if (loading === RemoteDataState.Error) {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue