[Glass] Can't we use indexes for sorting too?
Mariano Martinez Peck via Glass
glass at lists.gemtalksystems.com
Fri Aug 4 12:07:30 PDT 2017
Say I have an OrderedCollection with instances of XXX that has a field
"date" and I create a a equality index on it. So... ok, I can do the
select: { :entry | entry.date = aDate }
But... I would love to take advantage of the index and also do this:
sorted: {:a :b | a.date <= b.date }
Is there a way to do that?
Thanks in advance
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170804/61e68f40/attachment.html>
More information about the Glass
mailing list