<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:ralacroix@hydro.mb.ca" title="Robert Lacroix <ralacroix@hydro.mb.ca>"> <span class="fn">Robert Lacroix</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - 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>
<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;">Status</td>
<td>UNCONFIRMED
</td>
<td>NEW
</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 - Sorting breaks rows data alignement when functions include columns with no data"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=107779#c16">Comment # 16</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - 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:ralacroix@hydro.mb.ca" title="Robert Lacroix <ralacroix@hydro.mb.ca>"> <span class="fn">Robert Lacroix</span></a>
</span></b>
<pre>(In reply to Xavier Guillot from <a href="show_bug.cgi?id=107779#c15">comment #15</a>)
<span class="quote">> 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.
>
> [...]
>
> 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).
>
> [...]
>
> 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...</span >
I confirm that LO-Calc 5.2.7.2 has the OP's mentioned behaviour.
I also use colour-coded cells for missing data, but I avoid extending tables on
the right into empty columns for keyboarding ergonomics. I tried this anyway in
Excel today (version 1808 - Microsoft Office 365 ProPlus) and I grudgingly
acknowledge that Excel sorts empty columns with background colour on the right
side of a table when they are included in the sort range. Excel even offers a
sort option to sort by background colour.
So the behaviour desired by the OP is that of Excel. For the sake of
compatibility, I am setting this to NEW.
The change will affect only users who create sort ranges with empty cells on
the right side. The rest of us won't even notice the difference.</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>