-
Notifications
You must be signed in to change notification settings - Fork 234
Closed
Description
we need to investigate how to fix 'sort' behavior in queries for ES 2.3.
in t/model/release.t there's an assumption that a query (that lives in Model::API::Release::modules) with a sort => [ 'documentation', 'path' ] will give the same results of the equivalent Perl sorting:
sort { $a->{documentation} cmp $b->{documentation}
or $a->{path} cmp $b->{path} }
which is not the case:
- when elements have no value they are not placed at the front like in Perl
- the result sorting of
['HTTP::CookieMonster::Cookie','HTTP::CookieMonster']from ES comes back as:'HTTP::CookieMonster::Cookie','HTTP::CookieMonsterand not the other way around like in Perl.
@clintongormley - any pro tips?
Metadata
Metadata
Assignees
Labels
No labels