Using the current orderBy pipe, if you collection looks like:
[{
name: 'a'
}, {
name: 'b'
}, {
name: 'A'
}, {
name: 'B'
}]
then the sorted result by name will be:
[{
name: 'A'
}, {
name: 'B'
}, {
name: 'a'
}, {
name: 'b'
}]
How to avoid this without adding an extra lowered case property?
Using the current
orderBypipe, if you collection looks like:then the sorted result by
namewill be:How to avoid this without adding an extra lowered case property?