'Retrieves session ids for processing grouped by priority.'

def GetNotificationsByPriority(self, queue):

    queue_shard = self.GetNotificationShard(queue)
    return self._SortByPriority(self._GetUnsortedNotifications(queue_shard).values(), queue)
