question: public static SimpleAdapter constructTimezoneAdapter ( Context context , boolean sortedByName , int layoutId ) { final String [ ] from = new String [ ] { KEY_DISPLAYNAME , KEY_GMT } ; final int [ ] to = new int [ ] { android . R . id . text1 , android . R . id . text2 } ; final String sortKey = ( sortedByName ? KEY_DISPLAYNAME : KEY_OFFSET ) ; final MyComparator comparator = new MyComparator ( sortKey ) ; final List < HashMap < String , Object > > sortedList = getZones ( context ) ; Collections . sort ( sortedList , comparator ) ; final SimpleAdapter adapter = new SimpleAdapter ( context , sortedList , layoutId , from , to ) ; return adapter ; }
target:  Constructs an adapter with TimeZone list. Sorted by TimeZone in default.