private List <LOV_POLLUTANT> getOrderedPollutants(AreaOverviewSearchFilter filter, MediumFilter.Medium medium, int pollutantGroupID) { List <string> pollutantCodes = AreaOverview.GetPollutantReleasePollutantCodes(filter, medium, pollutantGroupID); IEnumerable <LOV_POLLUTANT> pollutants = ListOfValues.Pollutants(pollutantGroupID).Where(p => pollutantCodes.Contains(p.Code)); //sort by short name List <LOV_POLLUTANT> orderedPollutants = pollutants.OrderBy(p => LOVResources.PollutantNameShort(p.Code)).ToList(); //Add confidential in group to the end of the list. LOV_POLLUTANT confPollutant = ListOfValues.GetPollutant(pollutantGroupID); if (pollutantCodes.Contains(confPollutant.Code)) { orderedPollutants.Add(confPollutant); } return(orderedPollutants); }