mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-30 10:13:56 +01:00
sort_compare compared numbers at 15 significant digits, so 0.3 and =0.1+0.2 (0.30000000000000004) tied and kept their input order. Excel 365 orders them exactly in SORT, SORTBY, Data > Sort, the AutoFilter sort and table sort: 0.3 first ascending, last descending, in either input order. Numbers now compare with partial_cmp in sort_compare (0 and -0 still tie). = and COUNTIF keep their 15-digit comparison; UNIQUE, RANK, LARGE, SMALL and MODE were already exact, as observed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>