<commit_before>import styles from '../styles/albumsList'

import React from 'react'

import { withEmpty } from '../components/Empty'
import AlbumItem from '../containers/AlbumItem'

const FALLBACK_CREATION_DATE = null
const sortByCreationDate = (a, b) => {
  // descending order, so newer albums first
  return (new Date(a.created_at || FALLBACK_CREATION_DATE)) < (new Date(b.created_at || FALLBACK_CREATION_DATE))
}

const DumbAlbumsList = props => (
  <div className={styles['pho-album-list']}><commit_msg>fix: album sorting bug<commit_after>import styles from '../styles/albumsList'

import React from 'react'

import { withEmpty } from '../components/Empty'
import AlbumItem from '../containers/AlbumItem'

const FALLBACK_CREATION_DATE = null
const sortByCreationDate = (a, b) => {
  // descending order, so newer albums first
  return (new Date(b.created_at || FALLBACK_CREATION_DATE)) - (new Date(a.created_at || FALLBACK_CREATION_DATE))
}

const DumbAlbumsList = props => (
  <div className={styles['pho-album-list']}>
{'fraction_non_alphanumeric': 0.13170731707317074, 'fraction_numerical': 0.0, 'mean_word_length': 5.071005917159764, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 9, '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': '5805745', 'n_tokens_mistral': 332, 'n_tokens_neox': 324, 'n_words': 84}