- Mobile UI
- List navigation
Device Sorting
Find a device by the name you remember or by when you added it. Shipped in Amazon Alexa.
At Amazon, I shipped device sorting in the Alexa mobile app. Someone looking for a bulb they just added has a different starting point from someone who remembers its name. I worked on making both routes available from the device list.
Finding a device by date or by name
The Sort By menu offers four choices. Someone setting up a new bulb can start with the most recently added device. Someone looking for a named speaker can switch to alphabetical order.
Watch the control after the menu closes. Its label changes to Oldest First, then A to Z as the list reorders. You can tell why a particular device is at the top without reopening the menu.
Here’s a simplified TypeScript sketch of how those visible labels map to sort rules.
const sortRules = {
"Newest first": { field: "dateAdded", direction: "descending" },
"Oldest first": { field: "dateAdded", direction: "ascending" },
"A to Z": { field: "deviceName", direction: "ascending" },
"Z to A": { field: "deviceName", direction: "descending" },
} as const;