Keep Cast screen from jumping around aka sort it

Feature description:

I have multiple Sonos speaker in my network and the cast list sometimes keeps jumping around and they are changing the sorting multiple times a second. It would be neat if they could be kept in a consistent order.

Also, sometimes the devices do not appear, but they come back after I kill the app and open it again. I need to catch a debug log with that, but it is kinda hard as I cannot reproduce it consistently. The native Sonos app always finds the speaker and they are on a permanent Wi-Fi and one is on a Ethernet cable, but that’s probably something for another topic anyhow.

Problem solved:

Sometimes I cannot click the right cast device/speaker and need to try multiple times.

Brought benefits:

Make the app easier to use.

Other application solutions:

 
I think either list either needs some consistent sorting even while discovering the devices or some debounce to only update when the devices have settled. Maybe this should be combined with a loading indicator of some sorts.
 

Additional description and context:

 

 

Screenshots / Mockup:

 

   

I wonder what that sort button in the header is for :wink:

Oh, I didn’t even notice that :sweat_smile: IT was so inconspicuous. Maybe such buttons should show a description when being long pressed? I am used to that from some of Google Apps and it is usually quite helpful. Also I am not sure what the standard sort mode is, maybe last updated? The alphabetical should be way more useful for me.

The default is alpha you clicked it to change it :wink:

With that said, device are not supposed to be added then removed then added again in the discover order so might worth opening an issue one day.