← Goldman Sachs questions

Sort Employee objects

Filed under Goldman Sachs

Given a class Employee with firstName, lastName, and city, implement a dynamic method to sort a list of these objects by any specified member field.

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 Goldman Sachs questions

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