[Mailman-Developers] Rest API not returning members in alphabetical order

2020-04-01 Thread Stephen J. Turnbull
goran.ter...@gmail.com writes:

 > I got list of members in order of creation.
 > 
 > I tried same thing on another server, and I got members ordered
 > alphabetically.

What do you mean by "alphabetically"?  "Alphabetically on display
name" is a plausible interpretation, but in fact Mailman 3 orders
alphabetically on email address.

 > Any ideas what might be causing this behavior?

Ordering of the result set is done by the DBMS backend, so the problem
is either that the ORM code (SQLAlchemy) is not communicating the
request to the DBMS, or the DBMS is buggy.  That is, .find_members is
implemented in models/subscription.py, where it requests the backend
to order by list-id, email address, and user role in that order of
precedence.  Do you have the same version of the same DBMS backend in
both?  Same version of SQLAlchemy?

Steve
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Rest API not returning members in alphabetical order

2020-03-31 Thread goran . terzic
Based on Rest API documentation I expected that list of members will be 
returned in alphabetical order.

However, when I tried 
localhost:8001/3.0/lists/new.list.example.com/roster/member 
and
localhost:8001/3.0/members/find?list_id=new.list.example.com=member=9=10
I got list of members in order of creation.

I tried same thing on another server, and I got members ordered alphabetically.

Any ideas what might be causing this behavior?
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9