mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Fix the table sorting order bug for numerical values (#2587)
* Fix the table sorting order bug for numerical values. * Addressed @davkal's comment.
This commit is contained in:
@@ -202,7 +202,8 @@ export default class NodeDetailsTable extends React.Component {
|
||||
|
||||
const sortedBy = this.state.sortedBy || getDefaultSortedBy(columns, this.props.nodes);
|
||||
const sortedByHeader = this.getColumnHeaders().find(h => h.id === sortedBy);
|
||||
const sortedDesc = this.state.sortedDesc || defaultSortDesc(sortedByHeader);
|
||||
const sortedDesc = (this.state.sortedDesc === null) ?
|
||||
defaultSortDesc(sortedByHeader) : this.state.sortedDesc;
|
||||
|
||||
let nodes = getSortedNodes(this.props.nodes, sortedByHeader, sortedDesc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user