Skip to content

Instantly share code, notes, and snippets.

@krishnanraman
Created January 15, 2013 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krishnanraman/4535169 to your computer and use it in GitHub Desktop.
Save krishnanraman/4535169 to your computer and use it in GitHub Desktop.
Nested Sort
scala> empDB.sortBy(e=>(e.tenure,e.age,-e.salary)).reverse.head
res0: Employee = Employee(35,6,85079,emp7435)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment