private File [ ] getSources ( final List < File > sourceList ) { final File [ ] sortedSources = new File [ sourceList . size ( ) ] ; sourceList . toArray ( sortedSources ) ; Arrays . sort ( sortedSources , new Comparator < File > ( ) { @ Override public int compare ( final File o1 , final File o2 ) { return o1 . getName ( ) . compareTo ( o2 . getName ( ) ) ; } } ) ; return sortedSources ; }
Get alphabetized array of source files .