Build a sortable, searchable movie list UI
Company: Disney
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
## Frontend coding: Movie list with sort and search
Build a small UI that displays a list of movies loaded from a JSON endpoint.
### Data source
- Load movie data from a provided `db.json` URL (assume it returns an array of movie objects).
- Each movie includes at least:
- `name` (movie title)
- `year` (release year)
### Requirements
1. Display the movie **name** and **year** in a list/table.
2. Provide **search** (filter by name; define whether it’s substring and case-insensitive).
3. Provide **sorting** (at minimum by name and/or year; define ascending/descending).
4. Keep the UI responsive for a reasonably large list (e.g., thousands of items).
### Deliverables
- Component structure and state handling
- Data loading + error/loading states
- Sorting/search behavior clearly defined
- Basic UX considerations (e.g., empty results state)
Quick Answer: This question evaluates frontend engineering competencies such as UI component architecture, state management, asynchronous data fetching, client-side search/filtering and sorting, and performance considerations for large lists.