Search results ordering fix, Config generation fix