actions: Sort available_notification_sounds.

os.listdir uses an arbitrary filesystem-dependent order.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-06 11:57:45 -08:00
committed by Steve Howell
parent 42a9e473ae
commit d13a039b54

View File

@@ -3096,7 +3096,7 @@ def get_available_notification_sounds() -> List[str]:
if ext == '.ogg':
available_notification_sounds.append(root)
return available_notification_sounds
return sorted(available_notification_sounds)
def notify_subscriptions_removed(user_profile: UserProfile, streams: Iterable[Stream]) -> None: