Skip to content

Commit

Permalink
chore - Update readme example
Browse files Browse the repository at this point in the history
Now sorting should work.
  • Loading branch information
bebraw committed Feb 14, 2017
1 parent d8c752a commit 8ff0cb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## treetabular

3.1.2 / 2017-02-14
==================

* Chore - Update readme example. Now sorting should work.

3.1.1 / 2017-02-11
==================

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ Basically it converts `[ parent, x, y, z, children ]` into `[ parent, children,
/*
import React from 'react';
import cloneDeep from 'lodash/cloneDeep';
import orderBy from 'lodash/orderBy';
import { compose } from 'redux';
import * as resolve from 'table-resolver';
import VisibilityToggles from 'reactabular-visibility-toggles';
Expand Down Expand Up @@ -262,7 +263,8 @@ class TreeTable extends React.Component {
operations: [
sort.sorter({
columns,
sortingColumns
sortingColumns,
sort: orderBy
})
]
}),
Expand Down

0 comments on commit 8ff0cb4

Please sign in to comment.