Sort URLs by frequency and lexicographically
Filed under MakeMyTrip
The question
Given a list of string URLs, sort them by their frequency counts in descending order, and sort lexicographically when counts are equal.
No write-up yet. Related questions below have one.
Related MakeMyTrip questions
Collected from public candidate posts and coding forums. Updated Nov 2026.