<commit_before>import React, { Component } from 'react'
import styled from 'styled-components'

import Project from './Project'
import projects from './projects/list.json'

const Timeline = styled.section``

export default class extends Component {
  render() {
    let p = projects;
    if (this.props.filter) {
      p = projects.filter(this.props.filter);
    }
    return (
      <Timeline>
        {p.map(Project)}
      </Timeline>
    );
  }
}<commit_msg>Always list projects from most to least recent in timeline<commit_after>import React, { Component } from 'react'
import styled from 'styled-components'

import Project from './Project'
import projects from './projects/list.json'

const Timeline = styled.section``

export default class extends Component {
  render() {
    let p = projects;
    if (this.props.filter) {
      p = projects.filter(this.props.filter);
    }
    p = p.sort((a, b) => b.year - a.year);
    return (
      <Timeline>
        {p.map(Project)}
      </Timeline>
    );
  }
}
{'fraction_non_alphanumeric': 0.12944664031620554, 'fraction_numerical': 0.0, 'mean_word_length': 2.896153846153846, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5955339', 'n_tokens_mistral': 309, 'n_tokens_neox': 305, 'n_words': 88}