- Introduced `sortBy` method to `QueryResult` for ordering query results by trait values, with caching for performance optimization.
- Updated `createQueryResult` to support sorting and caching mechanisms, ensuring efficient entity management.
- Expanded README.md to document the new `sortBy` feature, including usage examples and performance details.
- Added new types for sorting direction and sortable keys to improve type safety and clarity in the API.