Howto choose the first of 2 _next_alarm sensors

I have 2 phones connected to my HA. How do i get the first alarm of the 2 sensors ?

sensor.sm_g973f_next_alarm
and
sensor.sm_g988b_next_alarm