const sortByNewest = function (a: any, b: any) {
  return ((b.created_at > a.created_at) ? 1 : (b.created_at < a.created_at) ? -1 : 0);
};