<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ilmari.lauhakangas@libreoffice.org" title="Buovjaga <ilmari.lauhakangas@libreoffice.org>"> <span class="fn">Buovjaga</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Sorting in LO Calc Messes Background Colors of Rows"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126678">bug 126678</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;">CC</td>
           <td>
                
           </td>
           <td>ilmari.lauhakangas@libreoffice.org
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Sorting in LO Calc Messes Background Colors of Rows"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126678#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Sorting in LO Calc Messes Background Colors of Rows"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126678">bug 126678</a>
              from <span class="vcard"><a class="email" href="mailto:ilmari.lauhakangas@libreoffice.org" title="Buovjaga <ilmari.lauhakangas@libreoffice.org>"> <span class="fn">Buovjaga</span></a>
</span></b>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=159719" name="attach_159719" title="Minimal test case">attachment 159719</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=159719&action=edit" title="Minimal test case">[details]</a></span>
Minimal test case

Steps with this test case:

1. Select A1:E10
2. Data - Sort
3. In the Options tab, verify that "Include formats" is checked
4. Sort key Column B

Result: the empty cell with yellow background does not move with the sort.

Bibisected with Linux 50max repo to
<a href="https://git.libreoffice.org/core/+/c50d8bf596f527bb53b86dd04da652ed72f2c549%5E!/">https://git.libreoffice.org/core/+/c50d8bf596f527bb53b86dd04da652ed72f2c549%5E!/</a>

"Fix high memory usage when sorting cells in Calc. (fdo#81501)

Empty columns were being unnecessarily included in the sorting
range which caused extra allocation. This happens when you select
the entire sheet to sort. There was already code to skip empty
trailing cells in rows but not to skip empty columns."

Looks like this small change did not take into account the option "Include
formats".</pre>
        </div>
      </p>


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

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