<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Sorting of date by ascending and descending is incorrect"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=116891">116891</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Sorting of date by ascending and descending is incorrect
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0.2.1 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>NARAYANVENUGOPAL@HOTMAIL.COM
</td>
</tr></table>
<p>
<div>
<pre>Description:
I have defined a column as date column.
When i try to sort this out by ascending or descending,the dates don't sort ,
but the behavior is rather sorted as a numerical string.
This should not occur and with little change in algorithm or forced behavior,
dates entered in the various date format should sort by Month Jan - Dec ( 1-12)
followed by Sort order of dates ( 1-31) , followed by sort order of Year ( in
YY or YYYY )
Steps to Reproduce:
1. Create columns with various dates representing every month , few dates, few
years such as in attached list
2. Select sort area
3. Select sort by ascending and descending.
Actual Results:
I ordered the dates by ascending. This is how it is sorted
1/13/17
1/26/17
1/26/17
1/26/17
1/27/17
1/28/17
1/3/17
1/3/17
1/5/17
1/9/17
10/18/16
10/19/16
10/20/16
10/24/16
10/25/16
10/27/16
11/17/17
11/19/16
11/22/16
11/23/16
11/25/16
11/25/16
11/9/16
12/10/16
12/13/16
12/14/16
12/18/17
12/19/16
12/2/16
12/20/16
12/20/16
12/21/16
12/23/16
12/24/16
12/26/16
12/26/16
12/27/16
12/28/16
12/28/16
12/29/16
12/3/16
12/3/16
2/15/17
2/7/17
3/3/17
3/30/17
3/30/17
3/31/17
3/31/17
4/28/17
4/3/17
5/5/17
8/12/16
8/12/16
8/16/16
8/17/16
8/18/16
8/20/16
8/22/16
8/23/16
8/23/16
8/23/16
8/24/16
8/24/16
8/24/16
8/24/16
8/25/16
8/25/16
8/26/16
8/26/16
8/26/16
8/26/16
8/3/16
8/30/16
8/30/16
8/31/16
8/8/16
9/12/16
9/13/16
9/14/16
9/14/16
9/16/16
9/16/16
9/16/16
9/19/16
9/25/17
9/26/16
9/26/16
9/27/17
9/28/16
9/29/16
9/3/16
9/6/16
9/7/16
9/9/16
Expected Results:
8/12/16
8/12/16
8/16/16
8/17/16
8/18/16
8/20/16
8/22/16
8/23/16
8/23/16
8/23/16
8/24/16
8/24/16
8/24/16
8/24/16
8/25/16
8/25/16
8/26/16
8/26/16
8/26/16
8/26/16
8/3/16
8/30/16
8/30/16
8/31/16
8/8/16
9/12/16
9/13/16
9/14/16
9/14/16
9/16/16
9/16/16
9/16/16
9/19/16
9/25/17
9/26/16
9/26/16
9/27/17
9/28/16
9/29/16
9/3/16
9/6/16
9/7/16
9/9/16
10/18/16
10/19/16
10/20/16
10/24/16
10/25/16
10/27/16
11/17/17
11/19/16
11/22/16
11/23/16
11/25/16
11/25/16
11/9/16
12/10/16
12/13/16
12/14/16
12/18/17
12/19/16
12/2/16
12/20/16
12/20/16
12/21/16
12/23/16
12/24/16
12/26/16
12/26/16
12/27/16
12/28/16
12/28/16
12/29/16
12/3/16
12/3/16
1/13/17
1/26/17
1/26/17
1/26/17
1/27/17
1/28/17
1/3/17
1/3/17
1/5/17
1/9/17
2/15/17
2/7/17
3/3/17
3/30/17
3/30/17
3/31/17
3/31/17
4/28/17
4/3/17
5/5/17
Reproducible: Always
User Profile Reset: No
Additional Info:
Sort algorithm must order by by year , then sort by month ascending from 01 to
12 or Jan - Dec
then Sort by Date
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/65.0.3325.181 Safari/537.36</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>