<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 - Calc 'Sort Ascending' does not properly sort when the field is date by mm/dd/yyyy"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=139440">139440</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Calc 'Sort Ascending' does not properly sort when the field is date by mm/dd/yyyy
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (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>john.oliver.3@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
A csv file when opened in LibreOffice Calc did not properly sort ascending.
Specifically, the target column with header "Date" and values as mm/dd/yyyy
sorted as 01/01/2021, ... 01/05/2021, 03/01/2020, 03/02/2020 ... 12/31/2020.
The proper sorting should be 03/01/2020, 03/02/2020 ... 12/31/2020, 01/01/2021,
... 01/05/2021. That is, 2021 is being placed before 2020.
Thank you. 

Steps to Reproduce:
1.Open attached Calc file: Test_Sort.csv
2.Choose 'Data'-> 'Sort Ascending' on "Date column" 


Actual Results:
Dates with year 2021 are ordered before dates with year 2020

Expected Results:
Dates with year 2020 should precede dates with year 2020 as referenced to
increasing row number.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded</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>