<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Sorting breaks rows data alignement when functions include columns with no data"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107779#c15">Comment # 15</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Sorting breaks rows data alignement when functions include columns with no data"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107779">bug 107779</a>
              from <span class="vcard"><a class="email" href="mailto:Valeryan_24@orange.fr" title="Xavier Guillot <Valeryan_24@orange.fr>"> <span class="fn">Xavier Guillot</span></a>
</span></b>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=161956" name="attach_161956" title="Empty cells not sorted, even if have a color background">attachment 161956</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=161956&action=edit" title="Empty cells not sorted, even if have a color background">[details]</a></span>
Empty cells not sorted, even if have a color background

I confirm the bug : some cells, if they are on a border of a table and the
column has no value, even if they are selected to be sorted and have a
background color, stay at the same place and are not moved with the next ones,
which creates a visual break and adds work to rearrange the presentation.

For example in my screenshot : often I have incomplete tables - ie an agronomic
test after harvest, I enter the grain yield and sort from best to lowest
productive (except row 1), but I keep an empty column to add later the oil
content. I set to (some or all) rows different colors.

If the column with empty cells is on the right of the table / selection, they
are not sorted (columns E-F-G in my test).

If they are on the middle, they are well moved with the others (M-N-O).

Also, if I add on first example, on column C only one value on a cell without
any colored background and keep all others empty, all the rows are well sorted
and "empty" cells moved.

Cells should not considered as empty if a background color has been set ; if
one cell is not seen as empty, the whole column must not be seen as empty, too,
and be sorted. Or more logical, if the cells are selected for sorting, they
should be sorted, empty or not...</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>