Created
January 15, 2013 01:21
-
-
Save krishnanraman/4535169 to your computer and use it in GitHub Desktop.
Nested Sort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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