def GetNotifications(self, queue):
    queue_shard = self.GetNotificationShard(queue)
    notifications = self._GetUnsortedNotifications(queue_shard).values()
    notifications.sort(key=lambda notification: notification.priority,
                       reverse=True)
    return notifications
Returns all queue notifications sorted by priority.
dataset/ETHPy150Open google/grr/grr/lib/queue_manager.py/QueueManager.GetNotifications