<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5920</bug_id>
          
          <creation_ts>2014-03-06 15:52:49 +0000</creation_ts>
          <short_desc>Secondary sorting criteria not working</short_desc>
          <delta_ts>2014-04-02 11:35:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40925</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-06 15:52:49 +0000</bug_when>
    <thetext>When you sort a column where values are not unique (for example, Section or License) we need a second sorting criteria to use for the subset of values that share the same first column value. Second sorting criteria are specified as needed in the sorting design specifications (see attachments in bug 4255, bug 4264, bug 4280, bug 4298, bug 4327, bug 4383 and bug 4387).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40926</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-06 15:53:31 +0000</bug_when>
    <thetext>toaster/master:213fef6e87cbf60d773e28d31653e3c626d4058e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41734</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-03-26 06:03:09 +0000</bug_when>
    <thetext>According to the Django documentation:

&quot;To order by multiple fields (where the second field is used to disambiguate ordering in cases where the first is the same), use multiple arguments:
That is, the correct invocation is: order_by(&apos;bedrooms&apos;, &apos;bathrooms&apos;).&quot;

So, the solution is to add a &quot;ordering_secondary&quot; parameter to &quot;_get_queryset&quot;, and have each class pass its respective secondary sort column name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42112</commentid>
    <comment_count>3</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-04-02 07:01:16 +0000</bug_when>
    <thetext>commit 4638e52ed2e146c43890dc9fba28031f6cc583ad</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42154</commentid>
    <comment_count>4</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-04-02 11:35:11 +0000</bug_when>
    <thetext>verified in master:3e528d3e4bc542ca2f654c54363c56af0fb9f61b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>