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);
}

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 ) ; }
sort movies inside this movie set by using either the sort title , release date or year .
