[Glass] Can't we use indexes for sorting too?

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Fri Aug 4 12:25:18 PDT 2017


mmmm maybe the btrees do no help for sorting..

On Fri, Aug 4, 2017 at 4:07 PM, Mariano Martinez Peck <marianopeck at gmail.com
> wrote:

> 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
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170804/ac1cc2f3/attachment.html>


More information about the Glass mailing list