-
When I use orderBy, first I get the Uppercase and then the lowercase results. Is it possible to orderBy without casing? |
Beta Was this translation helpful? Give feedback.
Answered by
CodeDredd
Nov 28, 2022
Replies: 1 comment 1 reply
-
Right now its not possible. But if its ok i am going to include this feature to the So i try to implemnt something like this: const userCollection = useCollect(useRepo(User).make([
{ id: 1, name: 'James', age: 40, post: { id: 1, title: 'Title1' } },
{ id: 2, name: 'john', age: 30, post: { id: 2, title: 'Title2' } },
{ id: 3, name: 'David', age: 20 },
])).sortBy('name', 'SORT_FLAG_CASE') |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bpuig
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now its not possible. But if its ok i am going to include this feature to the
sortBy
helper becauseorderBy
can by used multiple times with different fields where setting a sorting flag would be confusing.So i try to implemnt something like this: