Items in a one2many list are not sorted

Items in a one2many list are sorted on the -order given, but using set(ids) removes that order and the ids are then sorted ascending only