export/hazard:

When exporting hazard curves, order DB query results by `id`. This ensures
that results have a stable and consistent order.