diff --git a/liteindex/defined_index.py b/liteindex/defined_index.py index dbe3fae..b9f2581 100644 --- a/liteindex/defined_index.py +++ b/liteindex/defined_index.py @@ -320,8 +320,10 @@ def search( }: raise ValueError("Invalid sort_by") - if self.schema[sort_by] == "blob": + elif self.schema[sort_by] == "blob": sort_by = f"__size_{self.original_key_to_key_hash[sort_by]}" + else: + sort_by = self.original_key_to_key_hash[sort_by] if not select_keys: select_keys = list(self.original_key_to_key_hash) diff --git a/setup.py b/setup.py index 5af2f48..1b000e5 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ EMAIL = "praneeth@bpraneeth.com" AUTHOR = "BEDAPUDI PRANEETH" REQUIRES_PYTHON = ">=3.6.0" -VERSION = "0.0.2.dev6" +VERSION = "0.0.2.dev7" # What packages are required for this module to be executed? REQUIRED = [