โ† Oracle questions
CodingReported in a candidate post, Jan 2025

Sort names and cities arrays by name then city

Filed under Oracle

Given two parallel arrays, names[i] and cities[i] describing employee i, sort the employees by name, and for equal names by city. Return the two arrays reordered consistently.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.