Closed bobmcallan closed 3 years ago
You need to use OrderByWithOrdering("user_id", "double")
, instead.
Thanks, however implemented as suggested :
q = q.OrderByWithOrdering("user_id", "double") q = q.AddOrder("last_name", false) q = q.AddOrder("first_name", false)
result: from Users order by user_id, last_name, first_name
Bob
Worked it out.. CAPS for DOUBLE
package ravendb
type OrderingType = string
const ( OrderingTypeString = "STRING" OrderingTypeLong = "LONG" OrderingTypeDouble = "DOUBLE" OrderingTypeAlphaNumeric = "ALPHA_NUMERIC" )
Thanks, Bob
Orderby as a double results in string.
eg. q = q.OrderBy("user_id as double") => "from Users order by 'user_id as double', last_name, first_name"
Bob