How to sort events in an obspy catalog

Hi,
How to sort events in an obspy catalog ? (Time, Lat, Lon, Dep, Mag)?

Simply sort the underlying list. E.g. to sort for time use something like

cat.events.sort(key=lambda event: event.origins[0].time)
4 Likes

Many thanks, that was a perfect solution!