// Private functions private void SortInputs() { ConsoleHelper.WriteLine(LogType.DEBUG, "sorting input order"); IEnumerable <Input> inputSetPriority = InputQueue.Where(input => input.InputType == m_priority); IEnumerable <Input> inputSet = InputQueue.Where(input => input.InputType != m_priority); InputQueue = inputSetPriority.ToList(); InputQueue.AddRange(inputSet); }