question: public void sortMovies ( ) { synchronized ( movies ) { Utils . sortList ( movies , MOVIE_SET_COMPARATOR ) ; movieIds . clear ( ) ; for ( Movie movie : movies ) { movieIds . add ( movie . getDbId ( ) ) ; } } firePropertyChange ( "movies" , null , movies ) ; }
target:  Sort movies inside this movie set by using either the sort title, release date or year.