<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ming.v.hua@qq.com" title="Ming Hua <ming.v.hua@qq.com>"> <span class="fn">Ming Hua</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ui: editing: sort: <data - sort - options - left to right (sort columns)> proposes wrong row as sort criteria"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133144">bug 133144</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Version</td>
           <td>7.0.0.0.alpha1+ Master
           </td>
           <td>6.2.8.2 release
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>ming.v.hua@qq.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Blocks</td>
           <td>
                
           </td>
           <td>108386
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ui: editing: sort: <data - sort - options - left to right (sort columns)> proposes wrong row as sort criteria"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133144#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ui: editing: sort: <data - sort - options - left to right (sort columns)> proposes wrong row as sort criteria"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133144">bug 133144</a>
              from <span class="vcard"><a class="email" href="mailto:ming.v.hua@qq.com" title="Ming Hua <ming.v.hua@qq.com>"> <span class="fn">Ming Hua</span></a>
</span></b>
        <pre>Reproduced in 6.2.8:
Version: 6.2.8.2 (x64)
Build ID: f82ddfca21ebc1e222a662a32b25c0c9d20169ee
CPU threads: 2; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: zh-CN (zh_CN); UI-Language: en-US
Calc: threaded

Indeed it seems to just blindly remember the column index and use it for the
rows when sorting direction is switched.  If one uses A1:D4 range which is
asymmetric, and starts with D1 cell selected instead of A3, the "sort criteria"
tab will just have a blank "sort key 1", presumably becaused it wants to use
"row 4" but can't.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Calc sorting related bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108386">Bug 108386</a>] [META] Calc sorting related bugs and enhancements
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>