Fix sort

Issue that did not pop up while testing with vagrant. .sort fails on hashes, which are produced by chef search, while the mockup on vagrant creates arrays. Will remove this for now, maybe need to recast those arrays.