Skip to content

Commit

Permalink
Collection: Recently added item first
Browse files Browse the repository at this point in the history
Currently we had to press "End" to scroll to bottom all the time
  • Loading branch information
audreyt committed Dec 29, 2016
1 parent 3e68783 commit f3b06c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.jsx
Expand Up @@ -291,7 +291,7 @@ class GrainList extends React.Component {
grains.push({token: e[0], grain, info });
}
}
const grainRows = _.chain(grains).sortBy((r) => r.grain.dateAdded).map((r) => {
const grainRows = _.chain(grains).sortBy((r) => r.grain.dateAdded).reverse().map((r) => {
const checkbox = this.props.canWrite ?
<td onClick={this.clickCheckboxContainer.bind(this)}>
<input type="checkbox" checked={!!this.state.selectedGrains.get(r.token)}
Expand Down

0 comments on commit f3b06c2

Please sign in to comment.