Tried doing this with anoptional property
. It seems to sort it properly, but only for docs with the values. The ones that don't have it(undefined)
, don't go to the end of the array for some reason...
Where do the ones that have it
end up? Interspersed? Missing?
are on the first of the list.
So to me, an
value is considered lower and falsy - therefore consideredfirst
on an ascending sort.
Can you cite any precedent for having
at the end of the list?
I'm not able to turn up examples of how other frameworks handle this for comparison.