Jinq icon indicating copy to clipboard operation
Jinq copied to clipboard

Allow a where() after a sortedBy()

Open my2iu opened this issue 8 years ago • 4 comments

That's probably safe. Also, possibly allow a select() after a sortedBy(). And when something isn't allowed, create a better error message (possibly with a URL to the chart showing what's allowed).

my2iu avatar Sep 08 '16 16:09 my2iu

Just encountered this myself. This has become a blocking issue for us as i need to first sort the JinqStream by entity name, then select id. I cannot select id and then sort by name. Would really appreciate it if this could be prioritized in the near future

DarkBlade47 avatar Jul 17 '19 11:07 DarkBlade47

I'll try to take a look at this sometime during the next week.

my2iu avatar Jul 17 '19 19:07 my2iu

Ok, v1.8.28 is now in Maven Central, and it has support for doing where() and select() on streams that have been sorted. I won't bother updating the documentation though.

my2iu avatar Jul 22 '19 19:07 my2iu

Thank you so much for a quick delivery, I have retrieved v1.8.28 and implemented sorting in our application. It works just as expected. Feel free to close this issue.

DarkBlade47 avatar Jul 23 '19 09:07 DarkBlade47