- lance.LanceDataset.sort_by(self, sorting, **kwargs)
Sort the Dataset by one or multiple columns.
- Parameters:
- sorting : str or list[tuple(name, order)]¶
Name of the column to use to sort (ascending), or a list of multiple sorting conditions where each entry is a tuple with column name and sorting order (“ascending” or “descending”)
- **kwargs : dict, optional¶
Additional sorting options. As allowed by
SortOptions
- Returns:
A new dataset sorted according to the sort keys.
- Return type:
InMemoryDataset