ontoportal-lirmm / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
0 stars 4 forks source link

Feature: Add complex oder_by for joined attributes #36

Closed syphax-bouazzouni closed 1 year ago

syphax-bouazzouni commented 1 year ago

Issue

Before this PR, we could do an oder_by for only simple(direct) attributes, now we can do it also for object attributes.

For example

   University.where.order_by(address: {country: :asc}).all 

Will order universities by country an attribute of the object address.

Changes