[Libreoffice-bugs] [Bug 116891] New: Sorting of date by ascending and descending is incorrect

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Apr 8 23:06:58 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=116891

            Bug ID: 116891
           Summary: Sorting of date by ascending and descending is
                    incorrect
           Product: LibreOffice
           Version: 6.0.2.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: NARAYANVENUGOPAL at HOTMAIL.COM

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180408/4e0cf448/attachment.html>


More information about the Libreoffice-bugs mailing list