<commit_before>import React, {Component, PropTypes} from 'react';
const sortBy = require('lodash.sortby');
import ArticleLink from './ArticleLink';

export default class ProjectLinks extends Component {


  static get propTypes() {

    return {
      pages: PropTypes.array.isRequired
    }
  }


  render() {

    //get all pages we will render (should be pre-filtered)
    const { pages } = this.props;
    //page sort order
    const sortedPages = sortBy(pages, (page) => page.data.sort || 0).reverse();
    //convert to elements
    return (
      <div className="article-links">
        {sortedPages.map(page => <ArticleLink name={page.data.title} path={page.path} description={page.data.description} />)}
      </div>
    );
  }


}<commit_msg>articlelinks: sort by date created<commit_after>import React, {Component, PropTypes} from 'react';
const sortBy = require('lodash.sortby');
import ArticleLink from './ArticleLink';

export default class ProjectLinks extends Component {


  static get propTypes() {

    return {
      pages: PropTypes.array.isRequired
    }
  }


  render() {

    //get all pages we will render (should be pre-filtered)
    const { pages } = this.props;
    //page sort order
    const sortedPages = sortBy(pages, (page) => page.data.created_utc || 0).reverse();
    //convert to elements
    return (
      <div className="article-links">
        {sortedPages.map(page => <ArticleLink name={page.data.title} path={page.path} description={page.data.description} />)}
      </div>
    );
  }


}
{'fraction_non_alphanumeric': 0.13529411764705881, 'fraction_numerical': 0.00130718954248366, 'mean_word_length': 3.1716621253405997, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '3070419', 'n_tokens_mistral': 464, 'n_tokens_neox': 442, 'n_words': 122}