import { AlarmModel } from "@/contracts/client.schemas";

export function sortAlarms(alarms: AlarmModel[]) {
	alarms.sort(
		(a, b) =>
			new Date(b.event.createdAt).getTime() -
			new Date(a.event.createdAt).getTime(),
	);
}
