Logic: sort after reading in list from file