How would you build a search bar and a results table using the data I provide?
Implement the data-processing core as search_records(records, query, sort_key, page, page_size). Search case-insensitively across every string value in each record, sort matching records by sort_key in ascending order, and return the requested 1-based page. Treat an empty or whitespace-only query as matching every record. Each record is a map from strings to strings, and the output is an array of records.
def search_records(records, query, sort_key, page, page_size):