Project

General

Profile

Bug #13763

Updated by Tom Clegg over 6 years ago

Currently if a groups#contents request specifies @order=[name]@, the response will be ordered 

 <pre> 
 type=group                       name=foo1 
 type=group                       name=foo3 
 type=collection           name=foo2 
 type=collection           name=foo4 
 type=container_request    name=(null) 
 </pre> 

 The response should be ordered 

 <pre> 
 type=group                       name=foo1 
 type=collection           name=foo2 
 type=group                       name=foo3 
 type=collection           name=foo4 
 type=container_request    name=(null) 
 </pre> 

 Nonexistent columns should be sorted as "greater than null". For example, with @order=["groups.group_class", "users.first_name desc", "uuid"]@, the order of returned items should be 
 # groups with non-null group_class (sorted by group_class) 
 # groups with null group_class (sorted by uuid) 
 # users with null first_name (sorted by uuid) 
 # users with non-null first_name (sorted by descending first_name) 
 # container requests (sorted by uuid) 

Back