Bases: formula's type is not inferred correctly (from manually set property of string type)

Steps to reproduce

A .md file with a YAML property of birthdate: "1419-06-34" or birthdate: "1389-03-28" which is manually set as a text property.

A base looking at this property, even if told to consider it a text property and not a date property, will still not sort property, and will seem to still treat them as dates.

This can be seen through the addition of a formula (“birth”) equal to file.properties.birthdate

(see screenshot below)

Did you follow the troubleshooting guide? Y

Expected result

This is an attempt at keeping track of some dates in a fantasy calendar with longer months, hence desiring text formatting.

Actual result

Bases still treats them as dates, despite it specifically being set as a text property.

Environment

SYSTEM INFO:
	Obsidian version: 1.12.7
	Installer version: 1.8.4
	Operating system: Windows 10 Home 10.0.19045
	Login status: not logged in
	Language: en-GB
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: Minimal 7.0.7
	Snippets enabled: 5
	Restricted mode: on

Additional information

A bit of the .base file: There is no additional sorting

formulas:
  sortname: link(file,file.basename.split(" ").reverse().join(", "))
  birth: file.properties.birthdate
views:
  - type: table
    name: Table
    order:
      - formula.sortname
      - birthdate
      - formula.birth
    sort:
      - property: birthdate
        direction: ASC

thanks. I renamed the thread for clarity.

Hi.
I should clarify that my problem isn’t really with the formula - the formula seems to be a symptom of a deeper issue.
Said issue also causes the properties to not sort properly, which is why I actually included the screenshot and the snippet of the .base; 751 → 1389 → 1419 → 829 isn’t the correct ordering, and the two odd ones out are the ones that Obsidian seems to coerce into dates (hence my original title)

Related: https://www.reddit.com/r/ObsidianMD/comments/1s28uc3/bases_not_sorting_properly/