mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
6 lines
197 B
TypeScript
6 lines
197 B
TypeScript
import type { TimeChartItem } from '../types';
|
|
|
|
export const sortByDateDesc = (a: Pick<TimeChartItem, 'date'>, b: Pick<TimeChartItem, 'date'>) => {
|
|
return a.date.getTime() - b.date.getTime();
|
|
};
|