public void sort ( ) { Collections . sort ( list ) ; int i = 1 ; for ( StructureInterface interf : list ) { interf . setId ( i ) ; i ++ ; } }
Sorts the interface list and reassigns ids based on new sorting