private void sortData ( ) { sortedList . clear ( ) ; for ( DataPoint dataPoint : DATA_LIST ) { sortedList . add ( dataPoint . getValue ( ) ) ; } Collections . sort ( sortedList ) ; }
Puts all values in a ArrayList and sorts them