Skip to content

Commit

Permalink
[ML] Update sort logic for numerical label
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Jul 17, 2020
1 parent cc6ba19 commit 5e43657
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class AnnotationsTable extends Component {
name: i18n.translate('xpack.ml.annotationsTable.labelColumnName', {
defaultMessage: 'Label',
}),
sortable: true,
sortable: (key) => +key,
width: '60px',
render: (key) => {
return <EuiBadge color="default">{key}</EuiBadge>;
Expand Down

0 comments on commit 5e43657

Please sign in to comment.