please review: Ticket 47980 - Nested COS definitions using the same COS attribute are not correctly sorted