Automatic sorting of switching times on readout