Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alarms: fix natural order comparator to use timestamp first
Motivation: The natural order sorting of alarms currently is based on its key. This will work for most types of alarms because the timestamp is included in the key string. However, generic alarms have a UUID as key, so sorting is suboptimal in that case. Modification: Sort first on the last modified timestamp. Should those be equal, then try creation time, and only thereafter use the key to sort them. Result: All alarms are implicitly ordered by at least their latest modification timestamp. Target: master Request: 3.2 Request: 3.1 Request: 3.0 Request: 2.16 Require-notes: no Require-book: no Acked-by: Paul
- Loading branch information