Fixed priority sorting of handlers,

Changed fileresult to look in formatter dir, schema formatter dir or root formatter dir