matej_suchanek added a comment.
> But in the case of `5.` vs. `4.`, the length is the same; since PHP 8.0, uksort <https://www.php.net/manual/en/function.uksort.php> retains the original order in that case, but in production (PHP 7.4, until T319432 <https://phabricator.wikimedia.org/T319432>) the sort is not stable and may apparently swap the dates around arbitrarily. Let me just add that even if the sorting algorithm was stable, the problem is still there. If `4.` //always// came first, `5. 4. 1891` would be replaced as `5. April 1891` (correct), but `4. 5. 1891` would be replaced as `April 5. 1891` (wrong). And so on. TASK DETAIL https://phabricator.wikimedia.org/T325988 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: matej_suchanek Cc: Lucas_Werkmeister_WMDE, Aklapper, matej_suchanek, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
