We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a78377c commit 0154286Copy full SHA for 0154286
SoundSwitch.Common/Framework/Audio/Collection/DeviceCollection.cs
@@ -1,6 +1,7 @@
1
using System;
2
using System.Collections;
3
using System.Collections.Generic;
4
+using System.Linq;
5
using SoundSwitch.Common.Framework.Audio.Device;
6
7
namespace SoundSwitch.Common.Framework.Audio.Collection;
@@ -26,7 +27,7 @@ public DeviceCollection(IEnumerable<T> deviceInfos)
26
27
28
public IEnumerator<T> GetEnumerator()
29
{
- return _byId.Values.GetEnumerator();
30
+ return _byId.Values.OrderBy(info => info.DiscoveredAt).GetEnumerator();
31
}
32
33
IEnumerator IEnumerable.GetEnumerator()
0 commit comments