Created
May 15, 2009 03:20
-
-
Save heynemann/112043 to your computer and use it in GitHub Desktop.
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
From(collection) | |
.order_by("-(salary + bonus)") | |
.select("name","age","sex","salary","salary + bonus") | |
# This query returns the evaluated return of salary + bonus | |
# as dynamic_4 and sorts through this expression in desc order. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment