diff --git a/python/python/glide/async_commands/cluster_commands.py b/python/python/glide/async_commands/cluster_commands.py index bd970757c7..248304fe30 100644 --- a/python/python/glide/async_commands/cluster_commands.py +++ b/python/python/glide/async_commands/cluster_commands.py @@ -378,7 +378,7 @@ async def sort( ) -> List[str]: """ Sorts the elements in the list, set, or sorted set at `key` and returns the result. - This command is routed to primary only. + This command is routed to primary nodes only. To store the result into a new key, see `sort_store`. By default, sorting is numeric, and elements are compared by their value interpreted as double precision floating point numbers. @@ -426,7 +426,6 @@ async def sort_ro( """ Sorts the elements in the list, set, or sorted set at `key` and returns the result. This command is routed depending on the client's `ReadFrom` strategy. - To store the result into a new key, see `sort_store`. By default, sorting is numeric, and elements are compared by their value interpreted as double precision floating point numbers. diff --git a/python/python/glide/async_commands/standalone_commands.py b/python/python/glide/async_commands/standalone_commands.py index 8fccc810d6..28c4488ff7 100644 --- a/python/python/glide/async_commands/standalone_commands.py +++ b/python/python/glide/async_commands/standalone_commands.py @@ -278,7 +278,7 @@ async def sort( """ Sorts the elements in the list, set, or sorted set at `key` and returns the result. The `sort` command can be used to sort elements based on different criteria and apply transformations on sorted elements. - This command is routed to primary only. + This command is routed to primary nodes only. To store the result into a new key, see `sort_store`. See https://valkey.io/commands/sort for more details. @@ -341,9 +341,7 @@ async def sort_ro( ) -> List[Optional[str]]: """ Sorts the elements in the list, set, or sorted set at `key` and returns the result. - The `sort` command can be used to sort elements based on different criteria and apply transformations on sorted elements. - This command is routed depending on the client's `ReadFrom` strategy. - To store the result into a new key, see `sort_store`. + The `sort_ro` command can be used to sort elements based on different criteria and apply transformations on sorted elements. See https://valkey.io/commands/sort_ro for more details. diff --git a/python/python/glide/async_commands/transaction.py b/python/python/glide/async_commands/transaction.py index 36000c8864..885516ceb0 100644 --- a/python/python/glide/async_commands/transaction.py +++ b/python/python/glide/async_commands/transaction.py @@ -2759,7 +2759,7 @@ def sort( """ Sorts the elements in the list, set, or sorted set at `key` and returns the result. The `sort` command can be used to sort elements based on different criteria and apply transformations on sorted elements. - This command is routed to primary only. + This command is routed to primary nodes only. To store the result into a new key, see `sort_store`. See https://valkey.io/commands/sort for more details. @@ -2807,8 +2807,6 @@ def sort_ro( """ Sorts the elements in the list, set, or sorted set at `key` and returns the result. The `sort` command can be used to sort elements based on different criteria and apply transformations on sorted elements. - This command is routed depending on the client's `ReadFrom` strategy. - To store the result into a new key, see `sort_store`. See https://valkey.io/commands/sort_ro for more details. @@ -2941,8 +2939,6 @@ def sort_ro( ) -> TTransaction: """ Sorts the elements in the list, set, or sorted set at `key` and returns the result. - This command is routed depending on the client's `ReadFrom` strategy. - To store the result into a new key, see `sort_store`. See https://valkey.io/commands/sort_ro for more details.