An alternative would be to create a concatenated field which would combine all 4 fields and will sort correctly and then just run the Formula Query against that single field. You would need to convert the dates to strings like
20220719 (ie July 19, 2022)
You will need to control where fields with missing dates sort, at the top or the bottom. You can do that with the formula which makes the YYYYMMDD portion of the concatenated field.
------------------------------
Mark Shnier (Your Quickbase Coach)
[email protected]------------------------------