private static void SortRecordsetOptions()
{
Dictionary<string, IFindRecsetOptions> tmpDictionary = new Dictionary<string, IFindRecsetOptions>();
// ReSharper disable LoopCanBeConvertedToQuery
foreach(string findRecordsOperation in GlobalConstants.FindRecordsOperations)
// ReSharper restore LoopCanBeConvertedToQuery
{
KeyValuePair<string, IFindRecsetOptions> firstOrDefault = _options.FirstOrDefault(c => c.Value.HandlesType() == findRecordsOperation);
if(!string.IsNullOrEmpty(firstOrDefault.Key))
{
tmpDictionary.Add(firstOrDefault.Key, firstOrDefault.Value);
}
}
_options = tmpDictionary;
}