[core/fact] expose name variable as attr_reader
Correct order of fact resolution sorting